Test description

This test assesses your intermediate skills in C development, C syntax and features of C.
Topics: C syntax, data types, arrays, functions, structures, pointers, etc.

Sample questions

1
What is the output of the following program?

#include <stdio.h>

int main(){
  int a = 10;
  double b;
  size_t x = sizeof (++a-b) / sizeof(double);
  size_t y = sizeof (++a-b) / sizeof(int);

  if (x>y) printf("longer");
  else printf("shorter");
  printf(" %d",a);

  return 0;
}