main()
{
int i=-1;
-i;
printf("i = %d, -i = %d \n",i,-i);
}
Answer / susie
Answer :
i = -1, -i = 1
Explanation:
-i is executed and this execution doesn't affect the value
of i. In printf first you just print the value of i. After
that the value of the expression -i = -(-1) is printed.
| Is This Answer Correct ? | 6 Yes | 1 No |
print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!
35 Answers Tata Elxsi, TCS, VI eTrans,
main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }
#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
write a simple calculator c program to perform addition, subtraction, mul and div.
0 Answers United Healthcare, Virtusa,
What is the hidden bug with the following statement? assert(val++ != 0);
Write a function to find the depth of a binary tree.
13 Answers Adobe, Amazon, EFI, Imagination Technologies,
How can u say that a given point is in a triangle? 1. with the co-ordinates of the 3 vertices specified. 2. with only the co-ordinates of the top vertex given.
char *someFun() { char *temp = “string constant"; return temp; } int main() { puts(someFun()); }
main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }