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); 9 5 8 7 6 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following function is more appropriate for reading in a multi-word string? printf() gets() None of these puts() scanf() TRUE ANSWER : ? YOUR ANSWER : ?
C Language developed at _________? AT & T's Bell Laboratories of USA in 1972 Sun Microsystems in 1973 AT & T's Bell Laboratories of USA in 1970 Cambridge University in 1972 TRUE ANSWER : ? YOUR ANSWER : ?
The recursive functions are executed in a ........... Last In First Out order Random order Iterative order Parallel order First In First Out order TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output of the following program?void main(){ char str1[] = "abcd"; char str2[] = "abcd"; if(str1==str2) printf("Equal"); else printf("Unequal");} None of these. Error Unequal Equal TRUE ANSWER : ? YOUR ANSWER : ?
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);} x=5 x=4 x=0 Error x=1 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ int i=1, j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; }} None of These GOOD GOOD BAD Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
What is the base data type of a pointer variable by which the memory would be allocated to it? int Depends upon the type of the variable to which it is pointing. float unsigned int No data type TRUE ANSWER : ? YOUR ANSWER : ?
What is the maximum number of dimensions an array in C may have? 8 2 50 20 Theoratically no limit. The only practical limits are memory size and compilers. TRUE ANSWER : ? YOUR ANSWER : ?
If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3; 2 3 0 1 TRUE ANSWER : ? YOUR ANSWER : ?