Is it true that a global variable may have several declarations, but only one definition?
Point out the error in the following program.
#include<stdio.h> int main() { int (*p)() = fun; (*p)(); return} int fun() { printf("IndiaBix.com\n"); return}
What will be the output of the program?
#include<stdio.h> int X= int main() { int X= printf("%d\n", X); return }
Which of the structure is correct?
struct book { char name[10]; float price; int pages; };
struct aa { char name[10]; float price; int pages; }
Is it true that a function may have several declarations, but only one definition?
In the following program how long will the for loop get executed?
#include<stdio.h> int main() { int i= for(;scanf("%s", &i); printf("%d\n", i)); return}
What is the output of the program given below ?
#include<stdio.h> int main() { enum status { pass, fail, atkt}; enum status studstudstud stud1 = pass; stud2 = atkt; stud3 = fail; printf("%d, %d, %d\n", studstudstud3); return}
By default a real number is treated as a
Which of the following statements should be used to obtain a remainder after dividing 3.by 2.1 ?
#include<stdio.h> int main() { int X= { int X= printf("%d ", X); } printf("%d\n", X); return }
What is the output of the program
#include<stdio.h> int main() { int x =y =z =i; i = x < y < z; printf("%d\n", i); return}
What will be the output of the program inbit platform (Turbo C under DOS)?
#include<stdio.h> int main() { extern int i; i = printf("%d\n", sizeof(i)); return}
Which of the following is not user defined data type?
long int l = 2.35;
enum day {Sun, Mon, Tue, Wed};
What are the types of linkages?
#include<stdio.h> int main() { extern int fun(float); int a; a = fun(3.14); printf("%d\n", a); return} int fun(int aa) { return (int)++aa; }
What is the output of the program?
#include<stdio.h> int main() { extern int a; printf("%d\n", a); return} int a=
Is the following statement a declaration or definition? extern int i;
Which of the following special symbol allowed in a variable name?
#include<stdio.h> int main() { int a[= {3}; printf("%d, %d, %d\n", a[2], a[3], a[4]); return }
What is the output of the program in Turbo C (in DOS 16-bit OS)?
#include<stdio.h> int main() { char *s char far *s char huge *s printf("%d, %d, %d\n", sizeof(s1), sizeof(s2), sizeof(s3)); return}
Please disable the adBlock and continue. Thank you.