C Programming What will be the final value of the digit?void main(){ int digit = 0; for( ; digit <= 9; ) digit++; digit *= 2; --digit;} 17 19 20 -1 16 17 19 20 -1 16 ANSWER DOWNLOAD EXAMIANS APP
C Programming What number would be shown on the screen after the following statements of C are executed?char ch; int i; ch = 'G'; i = ch-'A';printf("%d", i); 5 7 6 9 8 5 7 6 9 8 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]));} 4 5 6 None of these 7 4 5 6 None of these 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming The library function used to find the last occurrence of a character in a string is strstr() strnstr() None of these laststr() strrchr() strstr() strnstr() None of these laststr() strrchr() 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 variable must always be the letter i when using a for loop. The commas should be semicolons. The variable k can’t be initialized. There should be a semicolon at the end of the statement. The increment should always be ++k . The variable must always be the letter i when using a for loop. The commas should be semicolons. The variable k can’t be initialized. There should be a semicolon at the end of the statement. The increment should always be ++k . ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int i = 0;printf("%d %d", i, i++); None of these 0 0 0 1 1 1 1 0 None of these 0 0 0 1 1 1 1 0 ANSWER DOWNLOAD EXAMIANS APP