DesDevPro

1. I have two 8 bit-registers holding some values. There is no third register which is free. How can I swap them such that no overflows can occur

Show Answer

2. What are 'near', 'far' and 'huge' pointers?

Show Answer

3. Garbage Value
Do all variables start with a garbage value? Where does this seemingly random value come from?

Show Answer

4. What will be the output of the following code? Justify your answer.

int a[]={10,20,30,40,50};
int i;
for(i=0;i<5;i++)
	printf("%d ", i[a]);
		

Show Answer

5. Write an equivalent of the sizeof function using ONLY macros

Show Answer

6. What is BSS Section?

Show Answer

7. Suppose I have several pointer pointing to a memory location. If I reallocate that memory, what happens to the other pointers?

Show Answer

8. Pointer Problem
Is it possible to create a pointer to unsingned int? Justify your answer

Show Answer

9. Differentiate between 'Code Portability' and 'Binary Portability'

Show Answer

10. Can you implement the fix function without using library routines?

Show Answer
Home | Articles | Photoshop Express | Knowledge Base | Can You C? | Security Center
Best viewed at a resolution of 1024 X 768. DesDevPro recommends Mozilla Firefox 3+

We respect your privacy. Please read our Terms of Use and Privacy Policy.
Designed by Subir Chowdhuri  © 2009 DesDevPro