Questions and Answers

Engineering Multiple Question Answers – This is the Computer Science & Engineering (C Programming) multiple questions and answers for various entrance exam, interview or competitive exam.  Declarations and Initializations – C Programming Questions and Answers its help you for computer engineering entrance exam like JEE Main, GATE & other computer engineering entrance test.

In the following program where is the variable a getting defined and where it is getting declared?


int main()


extern int a;

printf(“%d\n”, a);

return 0;


int a=20;


Is the following statement a declaration or definition?

extern int i;


Identify which of the following are declarations

1 :           extern int x;

2 :           float square ( float x ) { … }

3 :           double pow(double, double);


Is there any difference between following declarations?

1 : extern int fun();

2 :  int fun();


Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?


Which of the following special symbol allowed in a variable name?


Which of the following is not user defined data type?

1 :

struct book


char name[10];

float price;

int pages;


2 :           long int l = 2.35;

3 :           enum day {Sun, Mon, Tue, Wed};


How would you round off a value from 1.66 to 2.0?


By default a real number is treated as a


What are the types of linkages?


Question 1 of 10


Computer Science & Engineering Multiple Question Answers
2 (40%) 2 votes