Test description

This test evaluates your general knowledge of C development, focusing on C syntax, core features of C, data types, arrays, structures, functions, and pointers, without delving into the specifics of system implementation.

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;
}