Sunday, June 8, 2008

IOCL PLACEMENT PAPER - 2

IOCL PLACEMENT PAPER - 2


13.j=4

for(int i=0;i<5;i++)

{

j++;

++j;

}

output of j.

ans:14



9.char s1[20]="hello world";

s1[5]="\0";



printf("%d",strlen(s1));

printf("%%.%...(not clear)",s1);

}

ans:bad format specifier

14.brace { used in c for what ans:convention

15.parameters in c passed by ans:value.

16.when an array is passed it is by ans:pointer.

17.scanf can read ans:any data type

18.which cant be passed to subroutine.ans:preprocessor directive.

19.to get string of words..ans:gets()

20.external variables can be accesed ans:in functions which use them.




analytical:



1.cat->satc

dear->seard

sing->sings



3.1999 july 21st friday

1947 july 21st ?

ans:two days before.



4.2,12,30,56

No comments: