9051. What is the output of the program #include<stdio.h> int main() { int a[5] = {2, 3}; printf("%d, %d, %d\n", a[2], a[3], a[4]); return 0; }
9052. What is the output of the program? #include<stdio.h> int main() { union a { int i; char ch[2]; }; union a u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i); return 0; }
9053. In the following program how long will the for loop get executed? #include<stdio.h> int main() { int i=5; for(;scanf("%s", &i); printf("%d\n", i)); return 0; }
9054. What will be the output of the program? #include<stdio.h> int main() { int X=40; { int X=20; printf("%d ", X); } printf("%d\n", X); return 0; }
9055. Point out the error in the following program (if it is compiled with Turbo C compiler). #include<stdio.h> int main() { display(); return 0; } void display() { printf("IndiaBIX.com"); }
9056. Point out the error in the following program. #include int main() { void v = 0; printf("%d", v); return 0; }
9057. Point out the error in the following program. #include<stdio.h> struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; }
9058. Which of the following is correct about err used in the declaration given below? typedef enum error { warning, test, exception } err;
9059. Point out the error in the following program. #include<stdio.h> int main() { int (p)() = fun; (p)(); return 0; } int fun() { printf("IndiaBix.com\n"); return 0; }
9060. Which of the declaration is correct?
9061. Which of the following operations are INCORRECT?
9062. Which of the following correctly represents a long double constant?
9063. Which of the structure is incorrcet? 1 : struct aa { int a; float b; }; 2 : struct aa { int a; float b; struct aa var; }; 3 : struct aa { int a; float b; struct aa var; };
9064. Which of the structure is correct? 1 : struct book { char name[10]; float price; int pages; }; 2 : struct aa { char name[10]; float price; int pages; } 3 : struct aa { char name[10]; float price; int pages; }
9065. 1 : typedef long a;
extern int a c; 2 : typedef long a;
extern a int c; 3 : typedef long a;
extern a c;
9066. A long double can be used if range of a double is not enough to accommodate a real number.
9067. A float is 4 bytes wide, whereas a double is 8 bytes wide.
9068. If the definition of the external variable occurs in the source file before its use in a particular function, then there is no need for an extern declaration in the function.
9069. Size of short integer and long integer can be verified using the sizeof() operator.
9070. Range of double is -1.7e-38 to 1.7e+38 (in 16 bit platform - Turbo C under DOS)
9071. Size of short integer and long integer would vary from one platform to another.
9072. Range of float id -2.25e+308 to 2.25e+308
9073. Is there any difference in the following declarations?
int myfun(int arr[]);
int myfun(arr[20]);
9074. Suppose a program is divided into three files f1, f2 and f3, and a variable is defined in the file f1 but used in files f2 and f3. In such a case would we need the extern declaration for the variables in the files f2 and f3?
9075. Global variable are available to all functions. Does there exist a mechanism by way of which it available to some and not to others.
9077. Is it true that a global variable may have several declarations, but only one definition?
9078. Is it true that a function may have several declarations, but only one definition?
9079. Which of the following statements should be used to obtain a remainder after dividing 3.14 by 2.1 ?
9080. What are the types of linkages?
9081. Which of the following special symbol allowed in a variable name?
9082. Is there any difference between following declarations? 1 : extern int fun(); 2 : int fun();
9083. How would you round off a value from 1.66 to 2.0?
9084. Which of the following amendments relates to the Local Government Institutions?
9085. The World Trade Centre in New York was destroyed by terrorists on
9086. The Super fast train connecting Thiruvananthapuram and New Delhi is .....
9087. The two basic values of a constitutional government are
9088. Solid Carbon dioxide is known as
9089. In which order do the following gets evaluated 1. Relational 2. Arithmetic 3. Logical 4. Assignment
9090. What will be the output of the program? #include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i && ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
9091. Assuming, integer is 2 byte, What will be the output of the program? #include<stdio.h> int main() { printf("%x\n", -2<<2); return 0; }
9092. What will be the output of the program? #include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
9093. What will be the output of the program? #include<stdio.h> int main() { int x=12, y=7, z; z = x!=4 || y == 2; printf("z=%d\n", z); return 0; }
9094. What will be the output of the program? #include<stdio.h> int main() { static int a[20]; int i = 0; a[i] = i ; printf("%d, %d, %d\n", a[0], a[1], i); return 0; }
9095. What will be the output of the program? #include<stdio.h> int main() { int i=4, j=-1, k=0, w, x, y, z; w = i || j || k; x = i && j && k; y = i || j &&k; z = i && j || k; printf("%d, %d, %d, %d\n", w, x, y, z); return 0; }
9096. What will be the output of the program? #include<stdio.h> int main() { int i=-3, j=2, k=0, m; m = ++i && ++j || ++k; printf("%d, %d, %d, %d\n", i, j, k, m); return 0; }
9097. What will be the output of the program? #include<stdio.h> int main() { int x=4, y, z; y = --x; z = x--; printf("%d, %d, %d\n", x, y, z); return 0; }
9098. What will be the output of the program? #include<stdio.h> int main() { int i=3; i = i++; printf("%d\n", i); return 0; }
9099. What will be the output of the program? #include<stdio.h> int main() { int a=100, b=200, c; c = (a == 100 || b > 200); printf("c=%d\n", c); return 0; }
9100. What will be the output of the program? #include<stdio.h> int main() { int x=55; printf("%d, %d, %d\n", x<=55, x=40, x>=10); return 0; }