output for following code???

main()
{
int x=2,y,z;
x*=3+2;
printf("1.%d\n",x);
x*=y=z=4;
printf("2.%d %d %d\n",x,y,z);
x=y==z;
printf("3.%d\n",x);
x==(y=z);
printf("%d",x);
}

Answers were Sorted based on User's Feedback



output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / nandhini

1.10
2.40
3.4
4

Is This Answer Correct ?    1 Yes 0 No

output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / manikanta

1.10
2.40 4 4
3.1
1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is meant by type specifiers?

0 Answers  


What is bin sh c?

0 Answers  


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

0 Answers  


inline function is there in c language?

4 Answers  


What is c method?

0 Answers  






write a program to add two numbers of any size.....(remember any size)

1 Answers  


void main() { int a[]={1,2,3,4,5},i; for(i=0;i<5;i++) printf("%d",a++); getch(); }

3 Answers  


Is there any data type in c with variable size?

0 Answers  


There is a mobile keypad with numbers 0-9 and alphabets on it. take input of 7 keys and then form a word from the alphabets present on those keys.

0 Answers  


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


how to connect oracle in C/C++.

3 Answers   TCS, Wipro,


What is cohesion and coupling in c?

0 Answers  


Categories