Basic C Programming MCQ Questions and Answers

Take Exam

Basic C Programming MCQ questions with answers help candidates master the fundamentals of C language — one of the most popular programming languages for beginners and interview aspirants. These programming questions and answers focus on syntax, operators, loops, functions, and data handling. Practicing C programming MCQs strengthens logic and helps students perform better in technical assessments by TCS, Infosys, HCL, and other top recruiters. Each question is designed to test conceptual understanding and problem-solving skills, making it ideal for both practice and revision before coding interviews or placement exams.

Basic C Programming MCQ

Showing 10 of 198 questions

121. The statement int **a;

  • is illegal
  • is legal but meaningless
  • is syntactically and semantically correct
  • none of the above
Show Answer Report

122. Which of the following operators can be applied to pointer variable(s) ?

  • Division
  • Multiplication
  • Casting
  • None of the above
Show Answer Report

123. Pointers are of

  • integer datatype
  • character datatype
  • unsigned integer datatype
  • none of these
Show Answer Report

124. The address operator &, cannot act on

  • R-values
  • arithmetic expressions
  • members of a structure
  • local variables
Show Answer Report

125. A pointer variable can be

  • passed to a function as argument
  • changed within a function
  • returned by a function
  • returned by a function
Show Answer Report

126. A string that is a formal parameter can be declared

  • an array with empty braket
  • a pointer to charcter
  • a pointer to a character
  • none of the above
Show Answer Report

127. Choose the correct statements.

  • An entire array can be passed as argument to a function.
  • A part of an array can be passed as argument to a function.
  • Any change done to an array that is passed as an argument to a function will be local to the function.
  • None of these
Show Answer Report

128. If x is an array of integer, then the value of &x [x] is same as that of

  • &x [i+1] + sizeof (int)
  • x + sizeof (int) + 1
  • x + i
  • ++ (&x[i])
Show Answer Report

129. Pick the correct answers. If x is an one dimensional array, then

  • & x [i] is same as x + i -1
  • * (x + i) is same as * (&x[i])
  • * (x + i ) is same as x [i]
  • * (x + i ) is same as *x + i
Show Answer Report

130. Let x be an array. Which of the following cannot be present in the left hand side of an assignment statement?

  • x
  • x + i
  • * (x + i)
  • &x[i]
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test