How will you print “Hello World” without semicolon?
#include <stdio.h> int main(void) { if (printf(“Hello World”)) { } }
#include <stdio.h> int main(void) { if (printf(“Hello World”)) { } }
Scope of a variable is the part of the program where the variable may directly be accessible. In C, all identifiers are lexically (or statically) scoped.
auto, register, static, extern
Declaration of a variable/function simply declares that the variable/function exists somewhere in the program but the memory is not allocated for them. But the declaration of a variable/function serves an important role. And that is the type of the variable/function. Therefore, when a variable is… Read More »What is the difference between declaration and definition of a variable/function.