fork(12) download
  1. 1.What is the output of the following code?
  2.  
  3. #include<stdio.h>
  4.  
  5. main()
  6.  
  7. {
  8.  
  9. int x=100;
  10.  
  11. int *p;
  12.  
  13. int **r;
  14.  
  15. p=&x;
  16.  
  17. r=p;
  18.  
  19. printf("%d",*r);
  20.  
  21. }
  22.  
  23. i.100
  24.  
  25. ii.Garbage Value
  26.  
  27. iii.Warning: Assignment from Incompatible Pointer type
  28.  
  29. iv.Runtime Error.
  30. Select one:
  31. a. Both iii and iv Incorrect
  32. b. Both ii and iii
  33. c. Only iv
  34. d. Both i and iii
  35. e. Only i
  36. Feedback
  37. Your answer is incorrect.
  38. The correct answer is: Both i and iii
  39. Question 2
  40. Incorrect
  41. Mark 0.00 out of 1.00
  42. Flag question
  43. Question text
  44.  
  45. What will be output if you will compile and execute the following c code?
  46.  
  47. void main(){
  48.  
  49. float a=5.2;
  50.  
  51. if(a==5.2)
  52.  
  53. printf("Equal");
  54.  
  55. else if(a<5.2)
  56.  
  57. printf("Less than");
  58.  
  59. else
  60.  
  61. printf("Greater than");
  62.  
  63. }
  64. Select one:
  65. a. Less than
  66. b. Equal Incorrect
  67. c. Greater than
  68. d. Compiler Error
  69. Feedback
  70. Your answer is incorrect.
  71. The correct answer is: Less than
  72. Question 3
  73. Incorrect
  74. Mark 0.00 out of 1.00
  75. Flag question
  76. Question text
  77.  
  78. 1.Which of the following will be the correct output for the program given below?
  79.  
  80. #include<stdio.h>
  81.  
  82. int main()
  83.  
  84. {
  85.  
  86. int arr[2][2][2] = {10,2,3,4,5,6,7,8};
  87.  
  88. int *p,*q;
  89.  
  90. p = &arr[1][1][1];
  91.  
  92. q=(int * ) arr;
  93.  
  94. printf("%d%d\n”,*p,*q);
  95.  
  96. return 0;
  97. }
  98. Select one:
  99. a. 8 1
  100. b. 10 2
  101. c. Garbage Values Incorrect
  102. d. 8 10
  103. Feedback
  104. Your answer is incorrect.
  105. The correct answer is: 8 10
  106. Question 4
  107. Correct
  108. Mark 1.00 out of 1.00
  109. Flag question
  110. Question text
  111.  
  112. 1.Which of the following statements are correct about the C program given below?
  113.  
  114. #include<stdio.h>
  115.  
  116. int main()
  117.  
  118. {
  119.  
  120. int size;
  121.  
  122. scanf("%d”, &size);
  123.  
  124. int arr[size];
  125.  
  126. for(i=1;i<=size;i++)
  127.  
  128. {
  129.  
  130. scanf("%d”,arr[i]);
  131.  
  132. printf("%d\n”,arr[i]);
  133.  
  134. }
  135.  
  136. return 0;
  137.  
  138. }
  139.  
  140. a.The code is erroneous since the subscript for array used in for loop is in the range 1 to size.
  141.  
  142. b.The code is erroneous since the values of array are getting scanned through a loop.
  143.  
  144. c.The code is erroneous since the statement declaring array is invalid.
  145.  
  146. d.The code is erroneous since the type declaration statementint arr[size]; is done after scanf().
  147. Select one:
  148. a. a,b
  149. b. c,d Correct
  150. c. a,c
  151. d. b,c
  152. Feedback
  153. Your answer is correct.
  154. The correct answer is: c,d
  155. Question 5
  156. Correct
  157. Mark 1.00 out of 1.00
  158. Flag question
  159. Question text
  160.  
  161. 1.What is the output of the following code?
  162.  
  163. #include<stdio.h>
  164.  
  165. main()
  166.  
  167. {
  168.  
  169. float x;
  170.  
  171. x=3.14f*6+10/4*2;
  172.  
  173. printf("%f",x);
  174.  
  175. }
  176. Select one:
  177. a. 20.09
  178. b. 22.84 Correct
  179. c. 19.84
  180. d. 23.84
  181. Feedback
  182. Your answer is correct.
  183. The correct answer is: 22.84
  184. Question 6
  185. Incorrect
  186. Mark 0.00 out of 1.00
  187. Flag question
  188. Question text
  189.  
  190. What will be output if you will compile and execute the following c code?
  191.  
  192. void main(){
  193.  
  194. char c=125;
  195.  
  196. c=c+10;
  197.  
  198. printf("%d",c);
  199.  
  200. }
  201. Select one:
  202. a. 135
  203. b. Compiler Error Incorrect
  204. c. -121
  205. d. INF
  206. Feedback
  207. Your answer is incorrect.
  208. The correct answer is: -121
  209. Question 7
  210. Incorrect
  211. Mark 0.00 out of 1.00
  212. Flag question
  213. Question text
  214.  
  215. 1.What is the output of the following code?
  216.  
  217. #include<stdio.h>
  218.  
  219. #define TRIPLE(X) X+X+X
  220.  
  221. main()
  222.  
  223. {
  224.  
  225. int x=5,y=3;
  226.  
  227. printf("%d",++TRIPLE(x)*TRIPLE(y)++);
  228.  
  229. }
  230. Select one:
  231. a. 32
  232. b. 144 Incorrect
  233. c. 36
  234. d. 137
  235. Feedback
  236. Your answer is incorrect.
  237. The correct answer is: 36
  238. Question 8
  239. Correct
  240. Mark 1.00 out of 1.00
  241. Flag question
  242. Question text
  243.  
  244. What will be output if you will execute following c code?
  245.  
  246. #include<stdio.h>
  247.  
  248. int main()
  249.  
  250. {
  251.  
  252. printf("%d","abcde"-"abcde");
  253.  
  254. return 0;
  255. }
  256. Select one:
  257. a. Garbage Correct
  258. b. 0
  259. c. -1
  260. d. 1
  261. Feedback
  262. Your answer is correct.
  263. The correct answer is: Garbage
  264. Question 9
  265. Correct
  266. Mark 1.00 out of 1.00
  267. Flag question
  268. Question text
  269.  
  270. What will be output if you will compile and execute the following c code?
  271.  
  272. #include "stdio.h"
  273.  
  274. #include "string.h"
  275.  
  276. void main(){
  277.  
  278. int i=0;
  279.  
  280. for(;i<=2;)
  281.  
  282. printf(" %d",++i);
  283.  
  284. }
  285. Select one:
  286. a. 123 Correct
  287. b. 012
  288. c. Infinite Loop
  289. d. 0123
  290. Feedback
  291. Your answer is correct.
  292. The correct answer is: 123
  293. Question 10
  294. Correct
  295. Mark 1.00 out of 1.00
  296. Flag question
  297. Question text
  298.  
  299. What will be output if you will compile and execute the following c code?
  300.  
  301. #define x 5+2
  302.  
  303. void main(){
  304.  
  305. int i;
  306.  
  307. i=x*x*x;
  308.  
  309. printf("%d",i);
  310.  
  311. }
  312. Select one:
  313. a. Compiler error
  314. b. 27 Correct
  315. c. 133
  316. Feedback
  317. Your answer is correct.
  318. The correct answer is: 27
  319. Question 11
  320. Incorrect
  321. Mark 0.00 out of 1.00
  322. Flag question
  323. Question text
  324.  
  325. 1.What is the output of the following code?
  326.  
  327. #include<stdio.h>
  328.  
  329. #include<string.h>
  330.  
  331. main()
  332.  
  333. {
  334.  
  335. char s1[10]={'\a','\n','\r','\0','\b','\t'};
  336.  
  337. printf("%d %d",strlen(s1),sizeof(s1));
  338.  
  339. }
  340. Select one:
  341. a. 6 7
  342. b. 3 10
  343. c. 6 10 Incorrect
  344. d. 3 4
  345. Feedback
  346. Your answer is incorrect.
  347. The correct answer is: 3 10
  348. Question 12
  349. Correct
  350. Mark 1.00 out of 1.00
  351. Flag question
  352. Question text
  353.  
  354. 1.Which of the following statements is correct about the program given below?
  355.  
  356. # include<stdio.h>
  357.  
  358. int main()
  359.  
  360. {
  361.  
  362. int arr[3][3] = {1,2,3,4};
  363.  
  364. printf("%d\n”,*(*(*(arr))));
  365.  
  366. return 0;
  367. }
  368. Select one:
  369. a. It will report an error: 'Invalid Indirection ' Correct
  370. b. It will output a garbage value
  371. c. It will output a value 3
  372. d. It will output a value 1
  373. Feedback
  374. Your answer is correct.
  375. The correct answer is: It will report an error: 'Invalid Indirection '
  376. Question 13
  377. Incorrect
  378. Mark 0.00 out of 1.00
  379. Flag question
  380. Question text
  381.  
  382. What will be output if you will compile and execute the following c code?
  383.  
  384. void main(){
  385.  
  386. int i=4,x;
  387.  
  388. x=++i + ++i + ++i;
  389.  
  390. printf("%d",x);
  391.  
  392. }
  393. Select one:
  394. a. 18 Incorrect
  395. b. 12
  396. c. 9
  397. d. 21
  398. Feedback
  399. Your answer is incorrect.
  400. The correct answer is: 21
  401. Question 14
  402. Correct
  403. Mark 1.00 out of 1.00
  404. Flag question
  405. Question text
  406.  
  407. 1.#include<stdio.h>
  408.  
  409. int fn1()
  410.  
  411. {
  412.  
  413. static int x;
  414.  
  415. return x+1;
  416.  
  417. }
  418.  
  419. main()
  420.  
  421. {
  422.  
  423. int i;
  424.  
  425. for(i=0;i<10;i++)
  426.  
  427. printf("%d ",fn1());
  428.  
  429. }
  430.  
  431. What does the above program print?
  432. Select one:
  433. a. Prints integer from 1 to 10
  434. b. Prints 1 10 times Correct
  435. c. Prints 0 10 times
  436. d. Prints integer from 0 to 9
  437. Feedback
  438. Your answer is correct.
  439. The correct answer is: Prints 1 10 times
  440. Question 15
  441. Correct
  442. Mark 1.00 out of 1.00
  443. Flag question
  444. Question text
  445.  
  446. A pointer to a block of memory is effectively same as an array
  447. Select one:
  448. True Correct
  449. False
  450. Feedback
  451. The correct answer is 'True'.
  452. Question 16
  453. Incorrect
  454. Mark 0.00 out of 1.00
  455. Flag question
  456. Question text
  457.  
  458. 1.What will be output if you will execute following c code?
  459.  
  460. #include<stdio.h>
  461.  
  462. int main(){
  463.  
  464. int arr[]={6,12,18,24};
  465.  
  466. int x=0;
  467.  
  468. x=arr[1]+(arr[1]=2);
  469.  
  470. printf("%d",x);
  471.  
  472. return 0;
  473. }
  474. Select one:
  475. a. 8
  476. b. Compilation Error Incorrect
  477. c. 4
  478. d. 14
  479. Feedback
  480. Your answer is incorrect.
  481. The correct answer is: 4
  482. Question 17
  483. Incorrect
  484. Mark 0.00 out of 1.00
  485. Flag question
  486. Question text
  487.  
  488. What will be output if you will compile and execute the following c code?
  489.  
  490. void main(){
  491.  
  492. int x;
  493.  
  494. for(x=1;x<=5;x++);
  495.  
  496. printf("%d",x);
  497.  
  498. }
  499. Select one:
  500. a. 6
  501. b. 5
  502. c. None of the above Incorrect
  503. d. 4
  504. Feedback
  505. Your answer is incorrect.
  506. The correct answer is: 6
  507. Question 18
  508. Correct
  509. Mark 1.00 out of 1.00
  510. Flag question
  511. Question text
  512.  
  513. Arrange the following operators with respect to decreasing order of precedence.
  514. 1. Arithmetic 2. Logical 3. Relational 4. Decrement
  515. Select one:
  516. a. 4,1,3,2
  517. b. 4,2,3,1
  518. c. 4,1,3,2 Correct
  519. d. 4,3,2,1
  520. Feedback
  521. Your answer is correct.
  522. The correct answer is: 4,1,3,2
  523. Question 19
  524. Correct
  525. Mark 1.00 out of 1.00
  526. Flag question
  527. Question text
  528.  
  529. 1.What is the output of the following code?
  530.  
  531. #include<stdio.h>
  532.  
  533. main()
  534.  
  535. {
  536.  
  537. int i,j,x=0;
  538.  
  539. for(i=0;i<=2;i++)
  540.  
  541. for(j=0;j<=5;j++)
  542.  
  543. {
  544.  
  545. x++;
  546.  
  547. if(x<4)
  548.  
  549. printf("%d",x);
  550.  
  551. else
  552.  
  553. x--;
  554.  
  555. }
  556.  
  557. }
  558. Select one:
  559. a. 123333333
  560. b. 111222333
  561. c. 123 Correct
  562. d. 123321123
  563. e. 123222111
  564. Feedback
  565. Your answer is correct.
  566. The correct answer is: 123
  567. Question 20
  568. Correct
  569. Mark 1.00 out of 1.00
  570. Flag question
  571. Question text
  572.  
  573. What will be output if you will compile and execute the following c code?
  574.  
  575. void main(){
  576.  
  577. char *str="Hello world";
  578.  
  579. printf("%d",printf("%s",str));
  580.  
  581. }
  582. Select one:
  583. a. Hello world11 Correct
  584. b. 10Hello world
  585. c. Hello world10
  586. d. 11Hello world
  587. Feedback
  588. Your answer is correct.
  589. The correct answer is: Hello world11
  590.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:1: error: invalid suffix "What" on floating constant
 1.What is the output of the following code?
 ^
prog.c:1:1: error: expected identifier or '(' before numeric constant
In file included from /usr/include/stdio.h:74:0,
                 from prog.c:3:
/usr/include/libio.h:306:3: error: unknown type name 'size_t'
   size_t __pad5;
   ^
/usr/include/libio.h:310:67: error: 'size_t' undeclared here (not in a function)
   char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
                                                                   ^
/usr/include/libio.h:338:62: error: expected declaration specifiers or '...' before 'size_t'
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
                                                              ^
/usr/include/libio.h:347:6: error: expected declaration specifiers or '...' before 'size_t'
      size_t __n);
      ^
/usr/include/libio.h:469:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
 extern _IO_size_t _IO_sgetn (_IO_FILE *, void *, _IO_size_t);
                   ^
In file included from prog.c:3:0:
/usr/include/stdio.h:337:20: error: expected declaration specifiers or '...' before 'size_t'
       int __modes, size_t __n) __THROW;
                    ^
/usr/include/stdio.h:386:44: error: expected declaration specifiers or '...' before 'size_t'
 extern int snprintf (char *__restrict __s, size_t __maxlen,
                                            ^
/usr/include/stdio.h:390:45: error: expected declaration specifiers or '...' before 'size_t'
 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
                                             ^
/usr/include/stdio.h:709:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
 extern size_t fread (void *__restrict __ptr, size_t __size,
               ^
/usr/include/stdio.h:715:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
               ^
prog.c:5:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main()
 ^
prog.c: In function 'main':
prog.c:17:2: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
 r=p;
  ^
prog.c:19:8: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
 printf("%d",*r);
        ^
prog.c: At top level:
prog.c:23:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
 i.100
  ^
prog.c:64:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:64:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:78:1: error: invalid suffix "Which" on floating constant
 1.Which of the following will be the correct output for the program given below?
 ^
prog.c:94:8: warning: missing terminating " character
 printf("%d%d\n”,*p,*q);
        ^
prog.c:94:1: error: missing terminating " character
 printf("%d%d\n”,*p,*q);
 ^
prog.c:98:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:98:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:112:1: error: invalid suffix "Which" on floating constant
 1.Which of the following statements are correct about the C program given below?
 ^
prog.c:122:7: warning: missing terminating " character
 scanf("%d”, &size);
       ^
prog.c:122:1: error: missing terminating " character
 scanf("%d”, &size);
 ^
prog.c:130:7: warning: missing terminating " character
 scanf("%d”,arr[i]);
       ^
prog.c:130:1: error: missing terminating " character
 scanf("%d”,arr[i]);
 ^
prog.c:132:8: warning: missing terminating " character
 printf("%d\n”,arr[i]);
        ^
prog.c:132:1: error: missing terminating " character
 printf("%d\n”,arr[i]);
 ^
prog.c:140:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
 a.The code is erroneous since the subscript for array used in for loop is in the range 1 to size.
  ^
prog.c:146:76: error: unknown type name 'is'
 d.The code is erroneous since the type declaration statementint arr[size]; is done after scanf().
                                                                            ^
prog.c:146:84: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'after'
 d.The code is erroneous since the type declaration statementint arr[size]; is done after scanf().
                                                                                    ^
prog.c:146:84: error: unknown type name 'after'
prog.c:161:1: error: invalid suffix "What" on floating constant
 1.What is the output of the following code?
 ^
prog.c:176:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:176:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:201:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:201:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:215:1: error: invalid suffix "What" on floating constant
 1.What is the output of the following code?
 ^
prog.c:230:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:230:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:256:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:256:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
In file included from prog.c:274:0:
/usr/include/string.h:50:56: error: expected declaration specifiers or '...' before 'size_t'
 extern void *memmove (void *__dest, const void *__src, size_t __n)
                                                        ^
/usr/include/string.h:66:42: error: expected declaration specifiers or '...' before 'size_t'
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
                                          ^
/usr/include/string.h:69:56: error: expected declaration specifiers or '...' before 'size_t'
 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
                                                        ^
/usr/include/string.h:96:48: error: expected declaration specifiers or '...' before 'size_t'
 extern void *memchr (const void *__s, int __c, size_t __n)
                                                ^
/usr/include/string.h:133:39: error: expected declaration specifiers or '...' before 'size_t'
         const char *__restrict __src, size_t __n)
                                       ^
/usr/include/string.h:141:9: error: expected declaration specifiers or '...' before 'size_t'
         size_t __n) __THROW __nonnull ((1, 2));
         ^
/usr/include/string.h:147:57: error: expected declaration specifiers or '...' before 'size_t'
 extern int strncmp (const char *__s1, const char *__s2, size_t __n)
                                                         ^
/usr/include/string.h:154:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strxfrm'
 extern size_t strxfrm (char *__restrict __dest,
               ^
/usr/include/string.h:285:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strcspn'
 extern size_t strcspn (const char *__s, const char *__reject)
               ^
/usr/include/string.h:289:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strspn'
 extern size_t strspn (const char *__s, const char *__accept)
               ^
/usr/include/string.h:399:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'strlen'
 extern size_t strlen (const char *__s)
               ^
/usr/include/string.h:451:33: error: expected declaration specifiers or '...' before 'size_t'
 extern void __bzero (void *__s, size_t __n) __THROW __nonnull ((1));
                                 ^
In file included from /usr/include/string.h:635:0,
                 from prog.c:274:
/usr/include/i386-linux-gnu/bits/string2.h:945:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c1'
 __STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject);
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:947:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c1'
 __strcspn_c1 (const char *__s, int __reject)
 ^
/usr/include/i386-linux-gnu/bits/string2.h:955:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c2'
 __STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1,
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:958:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c2'
 __strcspn_c2 (const char *__s, int __reject1, int __reject2)
 ^
/usr/include/i386-linux-gnu/bits/string2.h:967:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c3'
 __STRING_INLINE size_t __strcspn_c3 (const char *__s, int __reject1,
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:970:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strcspn_c3'
 __strcspn_c3 (const char *__s, int __reject1, int __reject2,
 ^
/usr/include/i386-linux-gnu/bits/string2.h:1021:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c1'
 __STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept);
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:1023:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c1'
 __strspn_c1 (const char *__s, int __accept)
 ^
/usr/include/i386-linux-gnu/bits/string2.h:1032:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c2'
 __STRING_INLINE size_t __strspn_c2 (const char *__s, int __accept1,
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:1035:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c2'
 __strspn_c2 (const char *__s, int __accept1, int __accept2)
 ^
/usr/include/i386-linux-gnu/bits/string2.h:1044:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c3'
 __STRING_INLINE size_t __strspn_c3 (const char *__s, int __accept1,
                        ^
/usr/include/i386-linux-gnu/bits/string2.h:1047:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__strspn_c3'
 __strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
 ^
/usr/include/i386-linux-gnu/bits/string2.h: In function '__strpbrk_c2':
/usr/include/i386-linux-gnu/bits/string2.h:1105:50: error: expected ';' before '__s'
   return *__s == '\0' ? NULL : (char *) (size_t) __s;
                                                  ^
/usr/include/i386-linux-gnu/bits/string2.h: In function '__strpbrk_c3':
/usr/include/i386-linux-gnu/bits/string2.h:1117:50: error: expected ';' before '__s'
   return *__s == '\0' ? NULL : (char *) (size_t) __s;
                                                  ^
prog.c: At top level:
prog.c:276:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main(){
      ^
prog.c:276:6: error: conflicting types for 'main'
prog.c:5:1: note: previous definition of 'main' was here
 main()
 ^
prog.c:285:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:285:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:312:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:312:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:325:1: error: invalid suffix "What" on floating constant
 1.What is the output of the following code?
 ^
prog.c:340:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:340:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:354:1: error: invalid suffix "Which" on floating constant
 1.Which of the following statements is correct about the program given below?
 ^
prog.c:364:8: warning: missing terminating " character
 printf("%d\n”,*(*(*(arr))));
        ^
prog.c:364:1: error: missing terminating " character
 printf("%d\n”,*(*(*(arr))));
 ^
prog.c:368:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:368:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:369:29: warning: character constant too long for its type
 a. It will report an error: 'Invalid Indirection ' Correct
                             ^
prog.c:375:49: warning: character constant too long for its type
 The correct answer is: It will report an error: 'Invalid Indirection '
                                                 ^
prog.c:393:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:393:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:407:3: error: stray '#' in program
 1.#include<stdio.h>
   ^
prog.c:419:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main()
 ^
prog.c:419:1: error: redefinition of 'main'
prog.c:5:1: note: previous definition of 'main' was here
 main()
 ^
prog.c: In function 'main':
prog.c:427:14: warning: implicit declaration of function 'fn1' [-Wimplicit-function-declaration]
 printf("%d ",fn1());
              ^
prog.c: At top level:
prog.c:431:1: error: unknown type name 'What'
 What does the above program print?
 ^
prog.c:431:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'the'
 What does the above program print?
           ^
prog.c:431:11: error: unknown type name 'the'
prog.c:451:23: warning: multi-character character constant [-Wmultichar]
 The correct answer is 'True'.
                       ^
prog.c:458:1: error: invalid suffix "What" on floating constant
 1.What will be output if you will execute following c code?
 ^
prog.c:474:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:474:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:499:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:499:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:529:1: error: invalid suffix "What" on floating constant
 1.What is the output of the following code?
 ^
prog.c:558:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:558:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:582:1: error: unknown type name 'Select'
 Select one:
 ^
prog.c:582:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Select one:
           ^
prog.c:584:4: error: invalid suffix "Hello" on integer constant
 b. 10Hello world
    ^
prog.c:586:4: error: invalid suffix "Hello" on integer constant
 d. 11Hello world
    ^
stdout
Standard output is empty