What will be the output of given program?#include<stdio.h>void main(){ int i=1, j=-1; if((printf("%d", i)) < (printf("%d", j))) printf("%d", i); else printf("%d", j);} complier error 1 -1 1 1 -1 -1 -1 1 TRUE ANSWER : ? YOUR ANSWER : ?
Use of functions 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. Helps to avoid repeated programming across programs. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char p[]="%dn"; p[1] = 'c'; printf(p, 65);} c 65 Error A TRUE ANSWER : ? YOUR ANSWER : ?
Choose the correct output for the following program.#include<stdio.h>void main(){ int a=10, b=11, c=13, d; d = (a=c, b+=a, c=a+b+c); printf("%d %d %d %d", d, a, b, c);} 50, 13, 24, 50 13, 10, 24, 50 13, 13, 24, 13 50, 13, 24, 13 50, 13, 11, 13 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=3; switch(i) { default: printf("zero"); case 1: printf("one"); break; case 2: printf("two"); break; case 3: printf("three"); break; }} zero Error three None of These TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Compilation Error None of these Infinite Loop 5 5 5 5 5 5 4 3 2 1 TRUE ANSWER : ? YOUR ANSWER : ?
Size of the array need not be specified, when Initialization is a part of definition It is a formal parameter It is a declaratrion All of these TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following comments about the ++ operator are correct? It associates from the right The operand can come before or after the operator It cannot be applied to an expression It is a unary operator All of these TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... Parallel order Random order Iterative order Last In First Out order First In First Out order TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 2 5 5 5 5 5 2 4 4 TRUE ANSWER : ? YOUR ANSWER : ?