int a=1;
printf("%d %d %d",a++,a++,a);
need o/p in 'c' and what explanation too
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);
main() { static int a[3][3]={1,2,3,4,5,6,7,8,9}; int i,j; static *p[]={a,a+1,a+2}; for(i=0;i<3;i++) { for(j=0;j<3;j++) printf("%d\t%d\t%d\t%d\n",*(*(p+i)+j), *(*(j+p)+i),*(*(i+p)+j),*(*(p+j)+i)); } }
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.
How can you relate the function with the structure? Explain with an appropriate example.
How to access command-line arguments?
Write a C program to print ‘Campus Force training’ without using even a single semicolon in the program.
Print an integer using only putchar. Try doing it without using extra storage.
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
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, j; scanf("%d %d"+scanf("%d %d", &i, &j)); printf("%d %d", i, j); } a. Runtime error. b. 0, 0 c. Compile error d. the first two values entered by the user