main()
{
int i;
clrscr();
printf("%d", &i)+1;
scanf("%d", i)-1;
}
a. Runtime error.
b. Runtime error. Access violation.
c. Compile error. Illegal syntax
d. None of the above
Answer / guest
d, printf( ) prints address/garbage of i,
scanf() dont hav & sign, so scans address for i
+1, -1 dont hav any effect on code
| Is This Answer Correct ? | 13 Yes | 5 No |
main() { char a[4]="HELL"; printf("%s",a); }
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
typedef struct error{int warning, error, exception;}error; main() { error g1; g1.error =1; printf("%d",g1.error); }
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
main() { int i=5,j=6,z; printf("%d",i+++j); }
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
Cluster head selection in Wireless Sensor Network using C programming language.
why java is platform independent?