Basic C Programming MCQ Questions and Answers
Practice ModeShowing 10 of 198 questions
Q71
Consider the array definition
int num [10] = (3, 3, 3);
Pick the correct answers.
Answer: Option A
Q72
Consider the following type definition
typedef char x[10];
x myArray [5];
What will sizeof(my Array) be? Assume one character occupied 1 byte)
Answer: Option C
Q73
While passing an array as an actual argument, the function call must have the array name
Answer: Option C
Q74
The following program
main ()
{
Static int a[] = {7, 8, 9}
printf ("%d", 2[a]) + a[2]));}
Answer: Option D
Q75
The parameter passing mechanism for an array is
Answer: Option A
Q76
Consider the statement
int val[2] [4] = {1, 2, 3, 4, 5, 6, 7, 8,};
4 will be the value o
Answer: Option D
Q77
The maximum number of dimension an array can have C is
Answer: Option D
Q78
The following program fragment
int m, n, b = m n = 8;
char wer [80];
sprintf (wer, "%d%d%d", m n, b);
puts (wer);
Answer: Option C
Q79
Under which of the following conditions, the size of an one-dimensional array need not be specified?
Answer: Option
Q80
If a two dimensional array is used as a formal parameter, then
Answer: Option B