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 9 8 7 6 5 9 8 7 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of following is not a valid name for a C variable? None of these Both A and B Examians Exam_veda Exam veda None of these Both A and B Examians Exam_veda Exam veda 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 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 None of these 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 10 4 5 6 7 8 9 10 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of given program if user enter "xyz" ?#includevoid main(){float age, AgeInSeconds;int value;printf("Enter your age:");value=scanf("%f", &age);if(value==0){printf("\\nYour age is not valid");}AgeInSeconds = 365 * 24 * 60 * 60 * age;printf("\\n You have lived for %f seconds", AgeInSeconds);} Enter your age : xyz Your age is not valid Complier error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid Enter your age : xyz Your age is not valid Complier error Enter your age: xyz You have lived for 0 seconds Enter your age: xyz Your age is not valid ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} Error 3 Garbage value 6 Error 3 Garbage value 6 ANSWER DOWNLOAD EXAMIANS APP
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);} Error x=0 x=1 x=5 x=4 Error x=0 x=1 x=5 x=4 ANSWER DOWNLOAD EXAMIANS APP