July 9, 2021 in C and CPP
Inline function acts as a
1.6 Inline function acts as a
A) Function.
B) Macro.
C) Operator.
D) Manipulator.
July 9, 2021 in C and CPP
1.6 Inline function acts as a
A) Function.
B) Macro.
C) Operator.
D) Manipulator.
July 9, 2021 in C and CPP
1.5 Which of the following are valid methods for accessing the first element of the array
item?
A) item.1
B) item[1]
C) item[0]
D) item(0)
July 9, 2021 in C and CPP
1.4 When the break statement is encountered inside a loop, which one of the following
occurs?
A) Control goes to the end of the program.
B) Control leaves the function that contains the loop.
C) Causes an exit from the innermost loop containing it.
D) Causes an exit from all the nested loop.
July 9, 2021 in C and CPP
1.3 Which of the following are not keywords?
A) double
B) int
C) NULL
D) None of the above
July 9, 2021 in C and CPP
1.2 Static variable in a function is considered as
A) Global variable to the whole program.
B) Global to main () function.
C) Global to the function in which it is declared.
D) None of the above.
July 9, 2021 in C and CPP
1.1 Which of the following cannot be passed to a function?
A) Pointers.
B) Arrays.
C) Function name.
D) Header files.
July 8, 2021 in C and CPP
d) Explain ‘Ambiguity Resolution in Multiple Inheritances’.
July 8, 2021 in C and CPP
c) Write a program to show that the declaration of a class ‘Rectangle’, which derives from
the class ‘square’, which in turn derives from the class ‘shape’.
July 8, 2021 in C and CPP
b) What do you understand by the term Abstract Data Type?
July 8, 2021 in C and CPP
a) What does the following statement do?
i) *ptr+=1;
ii) ++*ptr;
iii) (*ptr)++;
iv) *ptr++;