What will be the output of the program ?#include<stdio.h>void main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 1, 2, 5 2, 1, 15 3, 2, 15 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char *p; p="Hello"; printf("%c", *&*p);} Some Address will be printed Hello H None of These TRUE ANSWER : ? YOUR ANSWER : ?
What is function? Function is the fundamental modular unit. A function is usually designed to perform a specific task. Function is a block of code that performs a specific task. It has a name and it is reusable. Function is a block of statements that perform some specific task. All 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();} 5 5 5 5 5 5 4 3 2 1 Infinite Loop Compilation Error None of these TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=0, j=0; if(i && j++) printf("%d..%d", i++, j); printf("%d..%d", i, j);} 0..1 0..0 1..1 1..0 TRUE ANSWER : ? YOUR ANSWER : ?
Size of the array need not be specified, when All of these It is a declaratrion It is a formal parameter Initialization is a part of definition TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the program?#include<stdio.h>#define int char void main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=1 Compiler Error None of These sizeof(i)=2 TRUE ANSWER : ? YOUR ANSWER : ?
If integer needs two bytes of storage, then maximum value of an unsigned integer is None of these 215 – 1 215 216 216 – 1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ printf("%p", main);} Error make an infinite loop Some address will be printed None of These TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=5 d=3 c=5 d=5 c=3 d=5 c=3 d=3 TRUE ANSWER : ? YOUR ANSWER : ?