C Programming Find the output of the following program.#define INC(X) X++void main(){ int x=4; printf("%d", INC(x++));} 6 Error 5 4 6 Error 5 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the difference between a declaration and a definition of a variable? Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. A declaration occurs once, but a definition may occur many times. Both can occur multiple times, but a definition must occur first. A definition occurs once, but a declaration may occur many times. There is no difference between them. Both can occur multiple times, but a declaration must occur first. A declaration occurs once, but a definition may occur many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function calculates the square of 'x' in C? pow(2, x) power(x, 2) power(2, x) pow(x, 2) sqr(x) pow(2, x) power(x, 2) power(2, x) pow(x, 2) sqr(x) ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? scanf() printf() puts() gets() None of these scanf() printf() puts() gets() None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p="hi friends", *p1; p1=p; while(*p!='\0') ++*p++; printf("%s", p1);} ij!gsjfoet hj grjeodt hi friends None of These ij!gsjfoet hj grjeodt hi friends None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} The loop will run infinitely many times. The program will not enter into the loop. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. The loop will run infinitely many times. The program will not enter into the loop. Prints the value of 0 one time only. There will be a compilation error reported. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP