main()
{
int i=-1;
+i;
printf("i = %d, +i = %d \n",i,+i);
}
Answer / susie
Answer :
i = -1, +i = -1
Explanation:
Unary + is the only dummy operator in C. Where-ever it
comes you can just ignore it just because it has no effect
in the expressions (hence the name dummy operator).
| Is This Answer Correct ? | 20 Yes | 1 No |
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
How to access command-line arguments?
struct Foo { char *pName; }; main() { struct Foo *obj = malloc(sizeof(struct Foo)); clrscr(); strcpy(obj->pName,"Your Name"); printf("%s", obj->pName); } a. Your Name b. compile error c. Name d. Runtime error
main() { printf("%d", out); } int out=100;
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
writte a c-programm to display smill paces
find A^B using Recursive function
Is the following code legal? struct a { int x; struct a b; }
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }
which function is used to clear the buffer stream on gcc? for example: I wrote following code on gcc #include<stdio.h> int main(void) { char ch; int a,b; printf("\nenter two numbers:\t"); scanf("%d%d",&a,&b); printf("enter number is %d and %d",a,b); printf("\nentercharacter:\t"); scanf("%c",&ch); printf("enter character is %c",ch); return 0; } in above progarm ch could not be scan. why?plz tell me solution.
main() { 41printf("%p",main); }8
int swap(int *a,int *b) { *a=*a+*b;*b=*a-*b;*a=*a-*b; } main() { int x=10,y=20; swap(&x,&y); printf("x= %d y = %d\n",x,y); }