Programs in C
Description: Programs in C Java/Oracle /C/C++IT Certificate Programs | |
Number of Questions: 15 | |
Created by: Tanya Dwivedi | |
Tags: Programs in C Java/Oracle /C/C++ IT Certificate Programs |
void main() { printf("%d"t, sizeof(7.5)); printf("%d"t, sizeof(80000)); printf("%d"t, sizeof('B')); }.
Which of the following is the output of the program?
void main() { signed x; unsigned y; x= 10 + - 10u + 10u + -10; y=x; if(x==y) printf("%d %d", x, y); else if(x!=y) printf("%u %u", x, y); }.
Which of the following is the output of the program?
The most common use of one dimensional array in C is which of the following?
void main() { int i=3; int *j, **k; j=&i; k=&j; printf("%u%u%d", k, *k, **k);}
void main() { print("%d%d%d", sizeof(4.14), sizeof(4.14f), sizeof(4.14L)); }
Which of the following is an integral data type?
void main() { volatile int a=12; printf("%d", a); }
Const enum Beta{x, y=4, z}p=11; void main() { enum Beta a, b; a=x; b=z; printf("%d", a+b-2p); }
void main() { char x=260; int i; i=x + !x + ~x + ++x; printf("%d", i); }
void main() { int x; x=sizeof(!7.8); printf("%d",x); }
void main() { int a= 100; void *j= &a; int *k= j; printf("%u", *k); }
void main() { int x; x=10, 20, 30; printf("%d", x); }
Which of the following creates a memory overlay area, with each union member using same memory storage locations?
void main() { int x; x=1; x= 2 + 2 * x++; printf("%d", x); }
Which of the following loops is called exit controlled loop?