The output of the code below is
#include <stdio.h> int *m() { int *p = 5; return p; } void main() { int *k = m(); printf("%d", k); }
View Answer Report Error Discuss
What is the output of this C code?
#include <stdio.h> void m() { printf("hi"); } void main() { m(); }
#include <stdio.h> void main() { int i = 0, k; if ( i == 0 ) goto label; for ( k = 0;k < 3; k++ ) { printf( "hin" ); label: k = printf( "%03d", i ); } }
How many times i value is checked in the below code?
#include <stdio.h> int main() { int i = 0; do { i++; printf( "In while loopn" ); } while (i < 3); }
#include <stdio.h> int main() { int a = 1, b = 1; switch (a) { case a*b: printf("yes "); case a-b: printf("non"); break; } }
#include <stdio.h> void main() { int x = 97; char y = x; printf("%cn", y); }
#include <stdio.h> void main() { int y = 3; int x = 5 % 2 * 3 / 2; printf("Value of x is %d", x); }
#include <stdio.h> void main() { int x = 1, z = 3; int y = x << 3; printf( "%dn", y ); }