Tag: c

Questions Related to c

c
  1. char s[] = { 'a', 'b' , 'c' };

  2. char s[] = "abc";

  3. both correct

  4. both wrong


Correct Option: C
c
  1. Perform standard functions like printing to the screen

  2. Data storage

  3. Both correct

  4. Both wrong


Correct Option: B
c
  1. is correct

  2. has syntax error

  3. causes run-time error

  4. none of the above


Correct Option: B
c
  1. puts('hi world');

  2. puts("hi world");

  3. Both correct

  4. Both wrong


Correct Option: B
c
  1. Must be declared before being used.

  2. Can be used without declaration

  3. Can be used before declaration

  4. none of the above


Correct Option: A
c
  1. Infinite loop

  2. Syntax error

  3. Executes only 3 iterations

  4. Executes only 4 iterations


Correct Option: A
c
  1. #include "stdio.h"

  2. #include

  3. Both correct

  4. Both wrong


Correct Option: A
c
  1. printf("%f",x);

  2. printf("%d",x);

  3. printf("%c",x);

  4. printf("%s",x);


Correct Option: B