Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
thirdsem-1

thirdsem-1

Ratings:

5.0

(1)
|Views: 2|Likes:
Published by api-3831824
general c questions
general c questions

More info:

Published by: api-3831824 on Oct 18, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

Contact no. 9836608046
ENCODING
The quest for c, c++, c#, data structure, java, unix and many more ends here
State the output of the following questions with valid reason
Q 1) void main( )
{
Int x = 5, y = 20;

x = ++x + y++ + x++;
printf(\u201c%d %d\u201d,x,y);
y = ++x + y++ + x++;
printf(\u201c%d %d\u201d,x,y);

}
Q 2) void main( )
{
Int a = 0 , b = 2 , c ;
c = a && b++;
printf(\u201c%d %d %d\u201d,a,b,c);
}
Q 3)
void main( )

{
float a = 4.7;
if ( a = = 4.7) printf (\u201c true\u201d);

else printf(\u201c false\u201d);
}
Q 4) void main( )

{
int w = printf(\u201chello\u201d);
printf(\u201c %d\u201d, w);

}
Q 5)
void main( )
{

int i = 1;
printf(\u201c %d %d %d %d %d %d\u201d , ++i , i++ , i , i++ , ++i);
}

Q 6)
void main( )

{
int x = -5 , y ;
y = ~ x ; y = y +1 ;

printf(\u201c%d\u201d, y );
}
Q 7)
void main( )
{ int x = 32 , y , z ;
y = x << 2 ; z = x >> 5 ;
printf(\u201c %d %d\u201d , y , z ) ; }

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->