C Language 100 Questions Answers
C Language 100 Questions Answers
What is a pointer?
What is a structure?
What is a union?
Out of fgets() and gets() which function is safe to use and why?
What is recursion?
Differentiate between a for loop and a while loop? What are it uses?
In C, why is the void pointer useful? When would you use it?
What does the error ‘Null Pointer Assignment’ means and what causes this error?
Are the expressions arr and &arr same for an array of integers?
What is a function ?
What is an argument ?
What do the ‘c’ and ‘v’ in argc and argv stand for?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is a file ?
What is a stream ?
How is fopen()used ?
Can we use any name in place of argv and argc as command line arguments
?
Is the allocated space within a function automatically deallocated when the function
returns?
What are the advantages of using array of pointers to string instead of an array of
strings?
What would be the equivalent pointer expression foe referring the same element as
a[p][q][r][s] ?
Are the variables argc and argv are always local to main ?