We pay for user submitted tutorials and articles that we publish. Anyone can send in a contributionLearn More
Recently, I ran into an interesting job interview question in C++ which I want to share. Lets take a look at the following code:
// Option A. char str1 = "example"; str1 = 'a'; // Option B. char* str2 = "example"; str2 = 'a';
What would happen if we compile and run this code ?
Copyright © 2012 Dev102.com
Breeze : Designed by Amit Raz and Nitzan Kupererd