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 );} Prints the value of 0 one time only. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. A run time error will be generated. Prints the value of 0 one time only. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. A run time error will be generated. ANSWER DOWNLOAD EXAMIANS APP
C Programming The type of the controlling expression of a switch statement cannot be of the type ........ short long float char int short long float char int ANSWER DOWNLOAD EXAMIANS APP
C Programming What's wrong in the following statement, provided k is a variable of type int?for(k = 2, k <=12, k++) The increment should always be ++k . There should be a semicolon at the end of the statement. The variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. The increment should always be ++k . There should be a semicolon at the end of the statement. The variable k can’t be initialized. The commas should be semicolons. The variable must always be the letter i when using a for loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 14 Compilation error 11 13 12 14 Compilation error 11 13 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ float arr[] = {12.4, 2.3, 4.5, 6.7}; printf("%d", sizeof(arr)/sizeof(arr[0]));} None of these 5 4 6 7 None of these 5 4 6 7 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 );} 9 2 0.25 1 0.5 9 2 0.25 1 0.5 ANSWER DOWNLOAD EXAMIANS APP