Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
C output type question
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
C programming
Q. Trace the output.
void main()
{
int x=10,y=20;
x=!x;
y=!y;
printf("x=%d , y=%d",x,y);
}
- Published on 17 Jun 15
a.
x= -10 , y= -20;
b.
x= 10 , y= 20;
c.
x=0 , y=0;
d.
None of the above.
ANSWER: x=0 , y=0;
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲