C Language - Keywords

You Are Here :: Home > C Language > Keywords - General Questions

 
19.

A variable in C cannot start with ?

A. An alphabet B. A number
C. A special symbol other that underscore D. Both B and C




20.

A character variable can at a time store ?

A. 1 character B. 8 character
C. 254 character D. None of above




21.

What will be the output of following program ?

#include
int main( )
{
int i=2,j=3,k,l;
float a,b;
k = i/j * j;
l = j/i * j;
a = i/j * j;
b = j/i * i;
printf("%d %d%f%f\n",k,l,a,b);
return 0;
}

A. 3, 0, 0, 0 B. 0, 3, 0.000000, 2.000000
C. 0,0,0,0 D. Error




22.

What will be the output of following program ?

#incllude
int main( )
{
int a,b;
a = -3 - - 25;
b = -3 - - (-3);
printf("a=%d b=%d\n",a,b);
return 0;
}

A. a = 22 b = -6 B. a = -6 b = 22
C. a = 3 b = 3 D. No Output




23.

What will be the output of following program ?

#include
int main( )
{
float a=5,b=2;
int c,d;
c =a%d;
d =a/2;
printf("%d\n",d);
return 0;
}

A. 3 B. 2
C. Error D. None of above




24.

What will be the output of program ?

#include
int main( )
{
printf("nn /n/n nn/n");
return 0;
}

A. Nothing B. nn /n/n nn
C. nn /n/n D. Error




« previous

1

2

3

4

5

6

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on