RGRahul Goyalinrhgoyal.hashnode.dev·Jul 11, 2022 · 2 min readscanf() is lousy!!Issue ❌ scanf() is a very lousy function 😪 due to which it can cause many runtime errors and even security issues📢 in our code that are very very difficult to catch.😨 A scanf looks like: scanf("%s", food); Now here, when a user enters input, he ca...00
RGRahul Goyalinrhgoyal.hashnode.dev·Jul 10, 2022 · 1 min readPointer DecayIssue ⚠ As array variables are slightly different from pointer variables, we need to be careful when we assign arrays to pointers. If we assign an array to a pointer variable, then the pointer will only contain address of array and the size is lost d...00
RGRahul Goyalinrhgoyal.hashnode.dev·Jul 6, 2022 · 2 min readConst in PointerIn C when we create a pointer, we can use const at two different places, one to make pointer constant so that it doesn't point to any other memory location and one to make the value in a memory location constant so that, in code we cannot change valu...00
RGRahul Goyalinrhgoyal.hashnode.dev·Jul 2, 2022 · 2 min readMemory structure of a C ProgramWhen we create a C program, its memory management looks something like this. Here we can see different sections that are stack, heap, globals , constants and code. Lets see a brief intro about each section : Stack : This is memory where generally pro...00
RGRahul Goyalinrhgoyal.hashnode.dev·Jun 16, 2022 · 4 min readLCD With Arduino UnoIntroduction I have interfaced LCD with Arduino Uno using 4-bit mode and I have used LiquidCrystal Library of Arduino. Here I created animations on LCD that can be used for some projects or representations. Animations include beating heart animation,...00