What will be output if you will compile and execute the following c code?#include<stdio.h>#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} Compiler Error 6 5 0 7 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);} Hello H Some Address will be printed None of These TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 2, 4 2, 0 4, 4 0, 2 2, 2 TRUE ANSWER : ? YOUR ANSWER : ?
Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. None of these. It should be declared. It should be initialized. TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function calculates the square of 'x' in C? power(x, 2) pow(2, x) power(2, x) sqr(x) pow(x, 2) TRUE ANSWER : ? YOUR ANSWER : ?
C was primarily developed as General purpose language System programming language Data processing language None of these TRUE ANSWER : ? YOUR ANSWER : ?
Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. II, III and IV I and II II and III I, II, III and IV I, II and III TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions Helps to avoid repeated programming across programs. All of these Helps to avoid repeating a set of statements many times. Enhances the logical clarity of the program. Makes the debugging task easier. TRUE ANSWER : ? YOUR ANSWER : ?
What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Runtime error 4 Syntax error 4 5 6 7 1 2 3 4 TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a valid identifier? examians1 _examians 1examians exam_veda TRUE ANSWER : ? YOUR ANSWER : ?