It returns the size of the variable in bits
It returns the size of the variable in bytes
It returns the size of the variable in kilobytes
It returns the number of elements in an array
for (int i = 0; i < 10; i++)
for i = 0 to 10 step 1
for (i = 0; i < 10; i++)
for (i < 10; i++)
What will be the output of the following code?
int a = 10, b = 20; printf("%d", a + b);
30
1020
10+20
Compiler error
p is a pointer to an array of 10 integers
p is an array of 10 integer pointers
p is a pointer to 10 integers
p is an array of pointers to 10 integers
What is the output of the following code?
int a = 5; printf("%d", a == 5);
0
1
5
Undefined
int arr[5] = {1, 2, 3, 4, 5}; printf("%d", arr[3]);
2
3
4
Structures cannot contain arrays
Structures cannot contain other structures
Structures can have members of different data types
Structures are the same as arrays
int x = 10, y = 20; int *p1 = &x, *p2 = &y; printf("%d", *p1 + *p2)
10
20
It exits the current loop and continues with the next iteration
It terminates the current loop and transfers control to the next statement after the loop
It skips the current iteration and moves to the next iteration
It repeats the current iteration
*
+
++
&&
int x = 5; printf("%d", ++x);
6
7
arr[4]
arr(5)
arr[5]
arr[6]
To exit the function and return control to the calling function
To pause the function temporarily
To call the function again
To exit the program
int arr[10][10];
int arr[10,10];
array int arr[10][10];
int arr{10}{10};
stdio.h
conio.h
stdlib.h
None of these
exit
break
continue
return
int a = 10, b = 5; printf("%d", a / b);
0.5
15
int func();
func() int;
function int func();
declare int func();
char str[] = "Hello";
char str = "Hello";
string str = "Hello";
char str[] = {'H', 'e', 'l', 'l', 'o'};
It allows the use of multiple alternatives for an expression
It is used to execute code conditionally based on the evaluation of a Boolean expression
It is used to execute a sequence of statements multiple times
It allows the execution of code based on multiple expressions