C/C++ Interview Question: Why Executable file differs in size

I have following code snippets… Code snippet 1 int arr[1000000]; int main() { return arr[0]; } Code snippet 2: int arr[1000000] = {10}; int main() { return arr[0]; } After compilation of the above snippets the output exe differs in size. The second snippet’s executable is much bigger in size than the first snippet’s executable. […]
Continue reading…

 

50 Common Interview Questions and Answers

I had this collection of general interview questions that get’s asked during interview. I’m not sure from where I got it hence unable to link this up to the concerned website but its a good read. Full credit to the people who wrote this. What kind of salary do you need? Are you applying for […]
Continue reading…