What will be the output of the given program?#include<stdio.h>void main(){int value1, value2=100, num=100;if(value1=value2%5) num=5;printf("%d %d %d", num, value1, value2);} 100 0 100 5 0 100 5 0 20 100 5 100 100 100 100 TRUE ANSWER : ? YOUR ANSWER : ?
The type of the controlling expression of a switch statement cannot be of the type ........ long int float char short TRUE ANSWER : ? YOUR ANSWER : ?
If integer needs two bytes of storage, then maximum value of an unsigned integer is 215 215 – 1 216 – 1 None of these 216 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int var = 5; printf("%d ", var--); if(var) main();} 5 4 3 2 1 5 5 5 5 5 None of These Infinite Loop TRUE ANSWER : ? YOUR ANSWER : ?
Which one of the following is not a valid identifier? 1examians exam_veda _examians examians1 TRUE ANSWER : ? YOUR ANSWER : ?
The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} 100 g##g2 Runtime error Syntax error 10012 TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} Syntax error 53 65 065 65 053 65 65 65 TRUE ANSWER : ? YOUR ANSWER : ?
The operator > and < are meaningful when used with pointers, if The pointers point to structure of similar data type. None of these. The pointers point to data of similar type. The pointers point to elements of the same array. TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ static int i=i++, j=j++, k=k++; printf("%d %d %d", i, j, k);} 0 0 0 1 1 1 garbage values Error TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} 2 20 Compiler Error Linker Error TRUE ANSWER : ? YOUR ANSWER : ?