Documente Academic
Documente Profesional
Documente Cultură
63
2) The format identifier '%i' is also used for _____ data type?
Int
printf("%f\n, x.f);
}
Depends on the standard value
13) In the following program where is the variable a getting defined and where it is
getting declared?
#include
int main()
{
extern int a;
printf(\"%d\\n\", a);
return 0;
}
int a=20;
Extern int a is declaration, int a=20 is the definition
Int 3_a
5) Why can't variable names begin with underscore?
To avoid conflicts since library routines use such names
6) All keywords in C are in
Lowercase
7) Resolving of Variable names(number of significant characters for uniqueness of
variable) depends on
Compiler and linker implementations
8) Which of the following is not a valid C variable name?
Int $main
11) Which data type is most suitable for storing a number 65000 in a 32-bit system?
short
1) void main()
{
int a=10,b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf("EXAM");
}
}
What will be the output of the above program?
Nothing is printed
while(s++<10)
{
if(s<4 && s<9)
continue;
printf("\n%d\t",s);
}
4 5 6 7 8 9 10
struct student s;
s.no = 8;
printf("hello");
}
Error