Look at the code below and select the correct answer:#include main(){printf ("hello world");}
Will not compile
Will compile without error but not run
Will compile with warnings but run ok
Will compile with warnings, but not run
See the code below and select the correct answer: #include main() { int i; printf ("enter integer: "); scanf ("%d",&i); printf ("You have entered: %f ", i); return (0); }
Will compile but not run
Will give an output of 1
Will give an output of 1.000000
See the code below and select the correct answer: #include #include #include main() { clrscr(); int i; printf ("enter integer: "); scanf ("%d",&i); printf ("You have entered: %d ", i); getch(); return (0); }
Will compile with warning, and run
Will provide an output 1
The output of the above code is 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
True
False
The code above will go into an infinite loop.
The code below will go into infinite loop: #include #include #include main() { int i=0, j=0; clrscr(); for (i=0; i<5;i++) { for (j=i; j<=0; j--) { printf ("1\t"); } printf("\n"); } getch(); return (0); }
Code: #include #include #include main() { int i=0, j=0; clrscr(); for (i=0; i<=5;i++) { for (j=0; j
Note the following code and then select the correct answer: #include main() { int i; printf ("enter integer: "); scanf ("%d",&i); printf ("You have entered: %f ", i); return (0); }
Will compile with warnings, but run
Will compile without warning, but not run
Note the code below and select the correct answer: #include main() { printf ("hello world"); }
Will compile without error or warning and run ok
Will compile without error or warning but not run
Will compile with warning but run ok
static methods cannot be overridden to non-static methods.