C Programming Determine Output:main(){ char *str1 = "abcd"; char str2[] = "abcd"; printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));} 2 4 5 2 4 4 8 5 5 2 5 5 2 4 5 2 4 4 8 5 5 2 5 5 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 );} A run time error will be generated. The program will not enter into the loop. There will be a compilation error reported. Prints the value of 0 one time only. The loop will run infinitely many times. A run time error will be generated. The program will not enter into the loop. There will be a compilation error reported. Prints the value of 0 one time only. The loop will run infinitely many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which command is used to skip the rest of a loop and carry on from the top of the loop again? skip resume continue None of these break skip resume continue None of these break ANSWER DOWNLOAD EXAMIANS APP
C Programming A C variable cannot start with A special symbol other than underscore Both of the above An alphabet A number A special symbol other than underscore Both of the above An alphabet A number ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} 4 5 6 7 8 9 1 2 3 10 None of these 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 1 2 3 10 None of these 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#includevoid main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} hello garbage value None of These hello 5 Error hello garbage value None of These hello 5 Error ANSWER DOWNLOAD EXAMIANS APP