Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
0 of .
Results for:
P. 1
thirdsem-1

# thirdsem-1

Ratings:

5.0

(1)
|Views: 2|Likes:
general c questions
general c questions

### Availability:

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 ) ; }