Computer Science & Engineering Multiple Question 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.

Identify which of the following are declarations

1 :           extern int x;

2 :           float square ( float x ) { … }

3 :           double pow(double, double);

 
 
 
 

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

 
 
 
 

Is the following statement a declaration or definition?

extern int i;

 
 
 
 

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};

 
 
 
 

By default a real number is treated as a

 
 
 
 

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

 
 
 
 

Is there any difference between following declarations?

1 : extern int fun();

2 :  int fun();

 
 
 
 

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

#include<stdio.h>

int main()

{

extern int a;

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

return 0;

}

int a=20;

 
 
 
 

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

 
 
 
 

What are the types of linkages?

 
 
 
 

Question 1 of 10

 

Tags: , , , , , , , , , , , , , , , ,

Related Post