Exam 3: Loops, Headers, Macros, and Arrays

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

C

Which one of the following is invalid macro in C programming?

Free
(Multiple Choice)
4.8/5
(44)
Correct Answer:
Verified

D

If we have declared an array described below -int arr[6];then which of the following array element is considered as last array element ?

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

D

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

(Multiple Choice)
4.8/5
(45)

Array which is having ____ dimensions is called as 2-D array.

(Multiple Choice)
4.7/5
(33)

#include "stdio.h" Int main() { Int a = 10, b = 20; If(a=b) { Printf("Easy"); } Else{printf("Hard"); } Return 0; }

(Multiple Choice)
4.8/5
(37)

What is output of below program? Int main() { Int i,j; For(i = 0,j=0;i<5;i++) { Printf("%d%d--",i,j); } Return 0; }

(Multiple Choice)
5.0/5
(33)

#define t 10 Void main() { Printf("%d",t); }

(Multiple Choice)
4.8/5
(38)

Wild pointer in C

(Multiple Choice)
4.9/5
(39)

Size of void pointer is

(Multiple Choice)
4.8/5
(38)

Which macro is used to insert assembly code in C program (GCC compiler)?

(Multiple Choice)
4.9/5
(32)

which of these is not a valid character constant

(Multiple Choice)
4.7/5
(37)

#include "stdio.h" Int main() { Int a@ = 10; Printf("%d", a@); Return 0; }

(Multiple Choice)
4.7/5
(36)

In a function call, _____________ is passed as arguments.

(Multiple Choice)
4.8/5
(34)

In Array, There is one to one correspondence between set of ________ and set of values.

(Multiple Choice)
4.8/5
(40)

Array with last element 'n' will always have array size equal to _______.

(Multiple Choice)
5.0/5
(38)

Smallest element of an array is called as _______.

(Multiple Choice)
4.9/5
(34)

Which gcc flag is used to enable all Compiler warnings?

(Multiple Choice)
4.8/5
(46)

Array is ______ data type in C Programming language.

(Multiple Choice)
4.9/5
(36)

What is output of below program? Int main() { For(; ;); For(; ;); Printf("Hello"); Return 0; }

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 53
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)