Structure in C Language

Programming Language > C Programming Language

Assess your knowledge of structures in C programming with these multiple choice questions. Learn about the different types of structures in C and how to use them to create complex data structures in your programs. Take the quiz now! ➲ Structure in C Language - Quiz


  • A s1 = &s2;
  • B s1 = s2;
  • C (*s1).number = 10;
  • D None of the mentioned
  • A Typecasting of structure
  • B Pointer to a variable of same structure
  • C Dynamic allocation of memory for structure
  • D All of the mentioned
  • A Syntax Error
  • B structure
  • C double data type
  • D An ordinary variable name
  • A string
  • B structures
  • C char
  • D all of the mentioned
  • A struct
  • B enum
  • C typedef
  • D all of the mentioned
  • A Another structure
  • B Function
  • C Array
  • D None of the mentioned
  • A struct temp{}s;
    main(){}
  • B struct temp{};
    struct temp s;
    main(){}
  • C struct temp s;
    struct temp{};
    main(){}
  • D None of the mentioned
  • A Multiple of integer size
  • B integer size+character size
  • C Depends on the platform
  • D Multiple of word size
  • A Compile time error
  • B 10
  • C Undefined behaviour
  • D Segmentation fault
  • A Compile time error
  • B 10 10
  • C Depends on the standard
  • D Depends on the compiler