Saturday 28 February 2015

SYNFOSYS

1.Impliment atoi function
2.Features of C++
3.Function over loading and function over riding
4.operator over loading for pre increment and post increment
5.sorting of strings with dictionary format
6.use of generic pointer
7.difference b/w array pointer and pointer array


Some of the questions  i faced in WR-test::

1.size of void,volatile,const
2.size of empty structure,union and class in C and C++

3.sort int i=0;
i=65536+300;
I value?

4.Output of
char *str=”hello”;
char *str1=”hai”;
printf(“%s\n”,strcpy(str,str1));

5.cat f1>f2  means

6.Difference b/w x=10,20,30; and x=(10,20,30);

7.switch(printf(“hi”))
{
case 2:printf(“nothing”);
case 3:printf(“something”);
}

Output of above code

8.a=10;b=1;
i=printf(“%d%d”,a,b);

I value?

9.i=1;
sizeof(i++ +i);

10.Output of

main(int argc,char **argv)
{
printf(“%d”,argv[argc]+5);
}

11.Output of
printf(“%%%%\n”);

12.swap resides in_____(ram/rom/disc/onchip cache)
13.boot strap program stored in___
14.Output of
i=7;
printf(“\n%old%old%old”,i++,i,++i);

15.Output of

while(for(i=0;i<5:i++))
{
printf(“program\n”);
}

16.$# means in unix


17.char str[]=”panterra \n\0”;
sizeof str and strlen(str);

18.what happens when unlink the file which is having only one link

20.Output of

char *p=”abc”;
char *q=”abc 123”;
while(*p==*q)
{
printf(“%c%c\n”p++,q++);
}

21.Output of

char *p=”abc”;
*p=z;

printf(“%s\n”,p);