C program
Top questions
See all →- When is a switch statement can be better than an if statement? If you have more than one condition to check on single variable or a single expression, then switch is better than if. In switch statement,... 1
- In the case of character array what is the difference b/w strlen() and sizeof() ? In character array strlen() returns the number of characters, while sizeof() returns the number of occupied bytes by character array. Exampl... 1
- What is the difference between printf() and puts() ? The function printf() writes the data on standard output device with the ability of formatted string using %c, %d, %s, %20s .. etc and print... 1
- What is a main() and difference b/w void main() and int main()? main() is an entry point ( main function) which is in most programming languages, When compiler begins compile the program, It looks for an... 1
- What is the return type of scanf() function, and what it returns ? scanf() is a library function, the prototype of scanf() is availabe in <stdio.h>, It returns a integer value, that describe successful input... 1
- What is the return type of printf() function, and what it returns ? printf() is a library function, the prototype of printf() is available in <stdio.h>, It returns a interger value, that describe how many cha... 1