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 *p="hai friends",*p1; p1=p; while(*p!='\0') ++*p++; printf("%s %s",p,p1); }
Write a program that reads a dynamic array of 40 integers and displays only even integers
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
how to check whether a linked list is circular.
#define a 10 int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } void foo() { #undef a #define a 50 }
Write a C function to search a number in the given list of numbers. donot use printf and scanf
What is the hidden bug with the following statement? assert(val++ != 0);
write a program in c to merge two array
To reverse an entire text file into another text file.... get d file names in cmd line
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?