Short Questions on C Programming

 

Short Questions C

Short Questions on C Programming

(a) What are various datatypes used in C ?
(b) Define keyword.
(c) State any four types of statements in C.
(d) Define recursion and give its advantage.
(e) What do you mean by scope of a variable ?
(f) What is structure ?
(g) Write down what do you mean by command line argument.
(h) Define string with example.
(i) What are limitations of Array ?
(j) Define file. State types of file.
(k) What is the difference between malloc( ) and calloc( ) ?
(l) What is generic pointer in C ?
(1) ‘C’ is middle level language. Comment.
(2) Give syntax and example of :
(1) scanf( )
(2) putchar( )
(3) Give example of nested for loop statement.
(4) Give use of break and continue statement.
(5) What is an array ? How to represent 2D- arrays in memory.
(6) Define a recursion. State advantages of recursion.
(7) What is exist function ? Give example.
(8) What is formal and actual parameter ?
(9) List different types of files.
(10) What is escape sequence ?
(11) Define union with example.
(12) Define string with example.
(a) What does static variable mean ?
(b) In header files whether functions are declared or defined ?
(f) What are C identifiers ?
(h) Define string with one inbuilt string example.
(j) What is the use of putchar( ) and puts( ) ?
(k) How is pointer variable declared and initialized ?
(a) What is the scope of the variable ?
(b) What are the repetitive statements used in C ?
(c) State two advantages of ‘C’ over other higher level languages.
(d) What is Automatic storage class ?
(e) Write down all unary operators available in ‘C’.
(f) Define keywords.
(g) State the basic data types used in ‘C’.
(h) List the decision-making statements in ‘C’.
(i) Define file. State types of file.
(j) What is generic pointer in ‘C’ ?
(k) There is difference between ‘A’ and ‘‘A’’. Comment.
(l) Define recursion and give its advantage.

Comments