C Programming What will be printed if the following code is executed?void main(){ int x=0; for( ; ; ) { if( x++ == 4 ) break; continue; } printf("x=%d", x);} x=5 x=1 Error x=0 x=4 x=5 x=1 Error x=0 x=4 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);} Exam\0Veda Veda None of these Exam Veda Exam Exam\0Veda Veda None of these Exam Veda Exam ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 0123456789 Syntax error 0 10 Infinite loop 0123456789 Syntax error 0 10 Infinite loop ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 1 2 0.25 0.5 9 1 2 0.25 0.5 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; char a[]="�"; if(printf("%sn", a)) printf("Ok here n"); else printf("Forget itn");} Forget it Error None of These Ok here Forget it Error None of These Ok here ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is not a correct variable type? int float real double char int float real double char ANSWER DOWNLOAD EXAMIANS APP