MCQOPTIONS
Bookmark
Saved Bookmarks
→
MAQ-Software
→
Aptitude & Logical - MAQ-Software
→
What is the output of the following code? x=15;...
1.
What is the output of the following code? x=15; y=0; if(x=10) y=7; else y=1; cout<< y;
A.
7
B.
0
C.
1
D.
6
Answer» D. 6
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Write one statement equivalent to the following two statements: x=sqr(a); return(x);
What is the output of the following code? x=15; y=0; if(x=10) y=7; else y=1; cout<< y;
Predict the output of the following program: #include<iostream.h> Class Green { int x; } int main() { Green g; cout < return0; }
What is the output of this program? class main_class { public static void main(String args[]) { if (a == 20) { int a= 18; System.out.println(x); } } }
What will be output of following program? #include<stdio.h> #include<iostream.h> int main(){ register a = 25; int far *p; p=&a; printf("%d ",*p); return 0; }
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies