main()
{
int i=-1;
-i;
printf("i = %d, -i = %d \n",i,-i);
}
Answer Posted / 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 |
Post New Answer View All Answers
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
Sir... please give some important coding questions asked by product companies..
How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??
Write a program to model an exploding firecracker in the xy plane using a particle system
how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns
How can you relate the function with the structure? Explain with an appropriate example.
how to test pierrot divisor
write a simple calculator c program to perform addition, subtraction, mul and div.
Design an implement of the inputs functions for event mode
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
could you please send the program code for multiplying sparse matrix in c????
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange