C Programming Language Multiple Choice Questions pdf
- A function can not be overloaded only by its return type
- Inline functions involves some additional overhead in running time
- A function that calls itself for its processing is known as
- We declare a function with ______ if it does not have any return type
- Arguments of a functions are separated with
- Variables inside parenthesis of functions declarations have _____ level access
- Observe following function declaration and choose the best Ans:
- The keyword endl
- Strings are character arrays. The last index of it contains the null-terminated character
- Union elements can be of different sizes
- What will be output if you will compile and execute the following c code?
- What is the output if you will compile and execute the following c code?
- What is the output after the compilation and execution of following c code?
- What is the output of following c code after compilation and execution?
- What will be the output if you compile and execute the following c code?
- What will be the output of following c code after compilation and execution?
- What is the output of following c code?
- Find the output of following c code?
- What is the output if you compile and execute the following c code?
- What will be the output of following c code?
- What is (void*)0?
- Can you combine the following two statements into one?
- In which header file is the NULL macro defined?
- How many bytes are occupied by near, far and huge pointers (DOS)?
- If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
- What would be the equivalent pointer expression for referring the array elementa[i][j][k][l]
- A pointer is
- The operator used to get value at address stored in a pointer variable is
- Are the expression *ptr++ and ++*ptr are same?
- Will the program compile?
- Are the three declarations char **apple, char *apple[], and char apple[][] same?
- What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
- What does the following declaration mean?
- In C, if you pass an array as an argument to a function, what actually gets passed?
- A pointer to a block of memory is effectively same as an array
- Does this mentioning array name gives the base address in all the contexts?
- Is there any difference int the following declarations?
- Are the expressions arr and &arr same for an array of 10 integers?
- The keyword used to transfer control from a function back to the calling function is
- A function cannot be defined inside another function
- Functions cannot return more than one value at a time
- If return type for a function is not specified, it defaults to int
- In C all functions except main() can be called recursively
- Which of the following function sets first n characters of a string to a given character?
- If the two strings are identical, then strcmp() function returns
- How will you print \n on the screen?
- The library function used to find the last occurrence of a character in a string is
- Which of the following function is used to find the first occurrence of a given string in another string?
- Which of the following function is more appropriate for reading in a multi-word string?
- Which of the following is the correct order of evaluation for the below expression?
- Which of the following correctly shows the hierarchy of arithmetic operations in C?
- Which of the following is the correct usage of conditional operators used in C?
- Which of the following is the correct order if calling functions in the below code?
- Which of the following are unary operators in C?
- In which order do the following gets evaluated
- A function can be overloaded with a different return type if it has all the parameters same