Hi to all,
Following are the questions. Please give me the answer.
Thanks in Advance!!!
1. IN HOW MANY WAYS CAN WE RETURN 2D ARRAY FROM FUNCTIONS AND HOW ARE THEY WORKING.
2. WHAT ARE NEAR, FAR, HUGE POINTERS. HOW ARE THEY REPRESENTED IN MEMORY? HOW DO WE CALCULATE THEIR SEGMENT AND OFFSET? WHICH POINTER TO USE WHEN.
3. WHAT IS THE O/P AND WHY.
main()
{
printf(i);
}
WHERE �i� CAN BE ANY INTEGER.
4. WHAT IS THE O/P AND WHY.
main()
{
unsigned int i=-2;
printf(�%u�,i);
}
HOW ARE NEGATIVE INTEGERS ARE STORED IN MEMORY IN UNSIGNED INTEGERS VARIBLES.
5. WHAT IS THE O/P AND WHY.
main()
{
char far * far* scr; /* what does it mean*/
printf(�%d�,sizeof(**scr));
}
6. WHAT DOES THESE MEAN
(a ) char far far far ***scr; /* what does it mean*/
(b) char far near **scr; /*will this compile and why*/
(c) char far * near *scr; /* what does it mean*/
7. WHAT WILL BE THE O/P.
main()
{
char far * far *scr; /* what does it mean*/
printf(�%d�,sizeof(scr));
}
8. WHAT WILL BE THE O/P.
main()
{
char far far far ***scr; /* what does it mean*/
printf(�%d..%d..%d�,sizeof(scr) ,sizeof(*scr) ,sizeof(**scr));
}
9. WHAT WILL BE THE O/P.
main()
{
char far * far * near *scr; /* what does it mean*/
printf(�%d..%d..%d�,sizeof(scr) ,sizeof(*scr) ,sizeof(**scr));
}
10. WHAT WILL BE THE O/P.
main()
{
char far * near * huge * near *scr; /* what does it mean*/
printf(�%d..%d..%d..%d�,sizeof(scr) ,sizeof(*scr) ,sizeof (**scr) ,sizeof(***scr));
}
11. WHAT WILL THE FOLLOWING PROGRAM DO IN LARGE MEMORY MODEL.
main()
{
(**(void(**)())0)(); /* what does it mean*/
printf(�hello�);
}
12. WHAT DOES THE FOLLOWING MEAN
Void(*abc(int,void(8)()))(int);
13. what will be the o/p and why?
main()
{
printf("%c","abcdefg"[4]);
}
14. what will be the o/p and why?
main()
{
char ch=""[0];
printf("%c",ch);
}
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor |
| Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
