C- Compile error: improper place of undef
Q 6- A Variable name in C includes which special symbols?
D- Compile error: NULL is undeclared.
Q 1- What is the output of the following code snippet?
Q 5- What is the output of the following program?
(b). Compilation is the process of translating high level language statements into equivalent machine code, which is object code.
In C, these are the unary operators,
Q 7- For a structure, if a variable behave as a pointer then from the given below operators which operator can be used to access data of the structure via the variable pointer?
Q 8- What is x in the following program?
)can be used to access the data using pointer variable.
Q 9- Choose the correct unary operators in C a) !, b) ~, c) ^&, d) ++
NULL is equivalent to \0 in value. Statement *s++ prints the character first and increments the address later.
A, the range of ASCII values for the ASCII characters is 0-255. Hence the addition operation circulates back to A
Q 2- What is the output of the following program?
Characters which are allowed and not allowed with variable name,
stdout is the identifier declared in the header file stdio.h which is connected to standard output device (monitor).
C- x is an array of three function pointers
Following quiz provides Multiple Choice Questions (MCQs) related to. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer usingbutton to check new set of questions in the quiz.
Q 10- In the given below statement, what does the arr indicate?
For a structure, Dot(.) operator can be used to access the data using normal structure variable and arrow (->
2 4, at while first incremented and later compared and in printf printed first and incremented later
Here, x is an array of three function pointers
square parenthesis signify as array at declaration and type is char*, so array of character pointers.
Q 4- What is the output of the following program?
D- arr is a array of 30 character pointers
B- Compile error: there is no macro called undef