main()
{
int a[10];
printf("%d",*a+1-*a+3);
}
Answer / susie
Answer :
4
Explanation:
*a and -*a cancels out. The result is as simple as 1 + 3 = 4 !
Is This Answer Correct ? | 4 Yes | 1 No |
plz send me all data structure related programs
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
write a c-program to display the time using FOR loop
main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10
C program to print magic square of order n where n > 3 and n is odd
struct aaa{ struct aaa *prev; int i; struct aaa *next; }; main() { struct aaa abc,def,ghi,jkl; int x=100; abc.i=0;abc.prev=&jkl; abc.next=&def; def.i=1;def.prev=&abc;def.next=&ghi; ghi.i=2;ghi.prev=&def; ghi.next=&jkl; jkl.i=3;jkl.prev=&ghi;jkl.next=&abc; x=abc.next->next->prev->next->i; printf("%d",x); }
source code for delete data in array for c
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com
void main() { unsigned giveit=-1; int gotit; printf("%u ",++giveit); printf("%u \n",gotit=--giveit); }
WAP to display 1,2,3,4,5........N
Is it possible to type a name in command line without ant quotes?