main()

{

int i=-1;

+i;

printf("i = %d, +i = %d \n",i,+i);

}



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

Post New Answer

More C Code Interview Questions

write a c-program to display the time using FOR loop

3 Answers   HCL,


how to check whether a linked list is circular.

11 Answers   Microsoft,


Is the following code legal? struct a { int x; struct a b; }

1 Answers  


What are the files which are automatically opened when a C file is executed?

1 Answers  


pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"

2 Answers  






main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }

1 Answers   DCE,


writte a c-programm to display smill paces

2 Answers  


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

0 Answers   TCS,


I need your help, i need a Turbo C code for this problem.. hope u'll help me guys.? Your program will have a 3x3 array. The user will input the sum of each row and each column. Then the user will input 3 values and store them anywhere, or any location or index, temporarily in the array. Your program will supply the remaining six (6) values and determine the exact location of each value in the array. Example: Input: Sum of row 1: 6 Sum of row 2: 15 Sum of row 3: 24 Sum of column 1: 12 Sum of column 2: 15 Sum of column 3: 18 Value 1: 3 Value 2: 5 Value 3: 6 Output: Sum of Row 1 2 3 6 4 5 6 15 7 8 9 24 Sum of Column 12 15 18 Note: Your program will not necessary sort the walues in the array Thanks..

0 Answers  


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

0 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

2 Answers   Wipro,


Categories