This is what I am doing. Changing the output dir path will only change the creation of executable path.
But when I run it using ctrl+f5 it gives error because program is looking the exe in old(debug) folder
These should always be the same. The paths will be in your build output.
Follow the instructions given by Richard MacCutchan and only change the 'Output Directory' located in the 'General' property page. I have a feeling that you mistakenly changed the 'Linker->Output File'. If I am correct... change it back to the default value of '$(OutDir)$(TargetName)$(TargetExt)' and follow his instructions.
Go to the next node in Properties named Debugging, and change the Command entry from $(TargetPath) to the same path as you previously changed, followed by $(TargetFileName); you may need a backslash in front.
But all of this begs the question: why? You are just storing up trouble for the future by not sticking to the defaults.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
I have the basic level knowledge of pointers, arrays and recursion's.
But i it is really confusing and hard to implement in programming, like when returning a multi-dimensional array from a user-defined function to the main, and problems like that. I surfed through the net but did not get enough questions to practice these concepts neither did get any books that i can practice from.
So it would be really helpful if i can get some recommendations for the books or even websites from where i can practice.