May 10, 2011
1. which sorting also will use to sort {1,2,3,4,5} ?
2. complexity of merge sort .?
3. which cpu register holds the address of next instruction?
4. select * from dual ; output..??
5. Main(){
Char *p[]=?pradeep mani?;
Printf(?%c%c%c%c?,p[i],i[p],(*p+1),*(p+1));
}
6. #define sqr(x) x*x, what is value of j if j = 2 * sqr(3 + 4)
7. if(fp = fopen(\”dfas\”,\”r\”) == NULL), what [...]
Read the full article →
May 10, 2011
1. main()
{ int I=3;
while(I–)
{int I=100;
I–;
Printf(“%d”, I);
}
}
find output?
100 99 98 99 98 97 99 99 99 error
Ans:- 99 99 99
2. some program using variable b which was not initialized so
Ans:- error
3. main()
{char ch;
for(ch=’0’;ch<=255;ch++)
printf(“%c”, ch);
}
Ans : infinite loop
4. main()
{
int i=3;
while (i— )
{
int i=100;
i—-;
printf(“%d”, i);
}
}
a) 99 99 99 b)2 2 2 c) error d) none of the above
5. [...]
Read the full article →