Constant in C Language

Programming Language > C Programming Language

A constant is basically a named memory location in a program that holds a single value throughout the execution of that program. It can be of any data type- character, floating-point, string and double, integer, etc. There are various types of constants in C. It has two major categories- primary and secondary constants. Character constants, real constants, and integer constants, etc., are types of primary constants. Structure, array, pointer, union, etc., are types of secondary constants.
Test your knowledge of the C language with this set of Constant in C Language MCQs. This quiz covers topics such as constants, data types, and variables. With questions ranging from basic to advanced, this quiz is perfect for anyone looking to brush up on their C language skills. Get ready to challenge yourself and see how much you know about the C language and its constants. ➲ Constant in C Language - Quiz


  • A CANADA = 7
  • B CANADA = 9
  • C CANADA = 3
  • D CANADA = 5
  • A Compilation Error
  • B Runtime Error
  • C C programming Presented by %s Atnyla
  • D None
  • A
     Rambo
    "Rambo"
    \Rambo\
    50%
  • B
     Rambo
    "Rambo"
    \\Rambo\\
    50%%
  • C
     Rambo
    "Rambo"
    \\Rambo\
    50\%
  • D Error
  • A PEACH = 3
  • B PEACH = 4
  • C PEACH = 5
  • D PEACH = 6
  • A C programming Class by
    WOW atnyla
  • B C programming Class by\n%s atnyla
  • C C programming Class by
    %s Sanfoundry
  • D Compilation error
  • A atnyla.com
  • B atnyla.com\0training classes
  • C atnyla.comtraining classes
  • D Invalid declaration
  • A a = 5
  • B a = 10
  • C Compilation error
  • D Runtime error
  • A 2
  • B 8
  • C 9
  • D 10
  • A Compilation error
  • B 5
  • C Undefined value
  • D 2