The output of the following program will be ::-
main()
{
int a, *ptr,b,c;
a=25;
ptr = &a;
b= a+30;
c= *ptr;
printf(” %d, %d, %d “, a, b, c);
}
Which of the following statement is correct regarding arrays ?
i Array elements are stored in contiguous memory locations.
ii The size of the array can be mentioned anywhere in the program
iii In an array’arr’ the expression arr[i] refers to the i + 1th element in the array.
Unions are different than structures in that
void main()
{
float a=0.7;
if(a< 0.7)
printf("c");
else
printf("c++");
}
which of the following statement is wrong
main()
{
char ch= ‘A’;
printf(“%d%d”, sizeof(ch) ,sizeof(‘A’));
}
main()
{
printf(” \n Hello”);
disp();
}
disp()
{
printf(” \n Hi”);
main();
}
void main() { while(1) printf(” sunc”); }
A max width of c variable name can be
C language came into existence in the year