![]() |
Re: Interesting Interview Questions For C Programmer
OS : Windows 7
Compiler : Code:Blocks Compiled Without problem Code:
0 |
Re: Interesting Interview Questions For C Programmer
Can you give it a try on Unix/Linux ??
|
Re: Interesting Interview Questions For C Programmer
Quote:
|
Re: Interesting Interview Questions For C Programmer
I dunno why its not giving any error on windows but logically when we are about to call free(), we have incremented the address held at pointer 'p' (as we have used p++ many times in loop). Now when we do a free, then 'p' contains a different address than what malloc() gave it. So ideally the program should crash at free().
|
Re: Interesting Interview Questions For C Programmer
Quote:
|
Re: Interesting Interview Questions For C Programmer
Quote:
|
Re: Interesting Interview Questions For C Programmer
For problem '3', google how or rather in which order the function arguments are processed/passed when a function call is made.
|
Re: Interesting Interview Questions For C Programmer
This is good stuff. Are you going to provide the answer to all the questions eventually?
|
Re: Interesting Interview Questions For C Programmer
Quote:
|
Re: Interesting Interview Questions For C Programmer
It's a very interesting article.I like C program very much.So it's very helpfull to me.I can understand more programs&it's answer.
|
| All times are GMT +5.5. The time now is 12:09. |