Develop a routine to reflect an object about an arbitrarily
selected plane
No Answer is Posted For this Question
Be the First to Post Answer
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }
29 Answers IBM, TCS, UGC NET, Wipro,
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }
Write a C program to add two numbers before the main function is called.
main() { int x=5; clrscr(); for(;x<= 0;x--) { printf("x=%d ", x--); } } a. 5, 3, 1 b. 5, 2, 1, c. 5, 3, 1, -1, 3 d. –3, -1, 1, 3, 5
main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above
main() { extern out; printf("%d", out); } int out=100;
main() { int i = 0xff ; printf("\n%d", i<<2); } a. 4 b. 512 c. 1020 d. 1024
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,
Is this code legal? int *ptr; ptr = (int *) 0x400;
main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }
How to return multiple values from a function?