Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What’s the output of the following program? Why?
What’s the output of the following program? Why?
✍: Guest
#include <stdio.h> main() { typedef union { int a; char b[10]; float c; } Union; Union x,y = {100}; x.a = 50; strcpy(x.b,\"hello\"); x.c = 21.50; printf(\"Union x : %d %s %f \n\",x.a,x.b,x.c ); printf(\"Union y :%d %s%f \n\",y.a,y.b,y.c); }
Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively)
What is output equal to in
output = (X & Y) | (X & Z) | (Y & Z)
2012-02-27, 2636👍, 0💬
Popular Posts:
How To Blend a Color Layer to a Image? - PSP Tutorials - Fading Images to Background Colors with PSP...
What is the FP per day in your current company?
How can we connect to Microsoft Access , Foxpro , Oracle etc ? Microsoft provides System.Data.OleDb ...
How is the MVC design pattern used in Struts framework? In the MVS design pattern, there 3 component...
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...