C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 6 5 Compiler Error Garbage Value 6 5 Compiler Error Garbage Value 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 );} There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. There will be a compilation error reported. The loop will run infinitely many times. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP
C Programming The default parameter passing mechanism is call by value result None of these. call by reference call by value call by value result None of these. call by reference call by value ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 15 -5 1 10 30 15 -5 1 10 30 ANSWER DOWNLOAD EXAMIANS APP
C Programming 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 and III I, II and III I and II I, II, III and IV II, III and IV II and III I, II and III I and II I, II, III and IV II, III and IV ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? scanf() printf() gets() None of these puts() scanf() printf() gets() None of these puts() ANSWER DOWNLOAD EXAMIANS APP