What is the difference between an inner and outer join?
An inner join involves joining two tables where a common column exists in both. An outer join is joining of two tables where there is no match in the two tables.
What will be the a and b values after executing the following code? int a=0; int b=a++;
a=1 b=0 This question is based on unary operators. The operator used here is unary increment which is used "after" the variable 'a'. Therefore, the value of 'a' is first stored in 'b' and then 'a' value is incremented. Had it been, "int b=++a" then the value of 'a' is first incremented and then stored in 'b' with a and b both storing value 1.
Is there a problem with the following code? If yes, what is it? char *a = "hello", *b = "everyone"; strcat(a,b);
The above code has an error. 'a' points to a string constant and hence cannot be altered.