C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. There should be a semicolon at the end of the statement. The variable must always be the letter i when using a for loop. The increment should always be ++k . The commas should be semicolons. The variable k can’t be initialized. ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 8 5 5 2 5 5 2 4 4 2 4 5 8 5 5 2 5 5 2 4 4 2 4 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct output for the following program.#includevoid 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);} 13, 13, 24, 13 50, 13, 24, 13 50, 13, 11, 13 13, 10, 24, 50 50, 13, 24, 50 13, 13, 24, 13 50, 13, 24, 13 50, 13, 11, 13 13, 10, 24, 50 50, 13, 24, 50 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 );} The loop will run infinitely many times. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. The loop will run infinitely many times. There will be a compilation error reported. Prints the value of 0 one time only. A run time error will be generated. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){int a=11,b=5;if(a=5) b++;printf("%d %d", ++a, b++);} 12 7 11 6 6 7 5 6 6 6 12 7 11 6 6 7 5 6 6 6 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 None of these Exam\0Veda Exam Veda Veda Exam None of these Exam\0Veda Exam Veda Veda ANSWER DOWNLOAD EXAMIANS APP