So have you figured out why the program doesn't do what you think?
Guess again.
Hmm, you still can't see it. What is ptr pointing at after fun(ptr++) returns? When exactly do you think that post-increment takes place? If...
Hmm..ok..obviously that wasn't precise enough. Explain to me EVERYTHING that this statement does: fun(ptr++);
Have another look at the precise location of your post-increment operator. There should be a big clue in the fact that your output doesn't...
It means you aren't using #defines and the predecrement operator correctly. --TWICE(no) expands to --2*no and you can't predecrement a constant....
It's not a lot of use, but you could argue that while (i++, j++, k) { ... } is better than i++; j++; while (k) { //... i++; j++; } on the...
Basically you would decide what types you want to support then prompt the user first which type, then which value, and you could use a switch to...
OK, so do you know that 'a' is in fact an integer constant? Find its value, and find the value of 'e', you will be able to work out what p+'e'-'a' is.
In that case you need some way to work out what the types are. The calling convention in C means that the calling function places the items on...
Sorry, let me clarify. In order to work out what is going on, you need to evaluate the expression p+p[3]-p[1]. And as the output is "2011" that...
What are p[3] and p[1]?
The only valid explanation of this code is that its author is an idiot.
What's the problem here - do you not know what the error is? It's displayed. If you do know which line is the error, what exactly don't you...
They are not the same. In one, the for loop is: for(i=0;i<5;i++) { ... continue; // clearly you don't understand what this statement does ......
Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe You want me just to write the code for you for free? Not...
Re: program that recognizes date of any formateven formats like "feb-2-2003" , "02-fe It's not difficult to write string parsing programs. How...
What do you think will be the output of this code? If you're not sure, try it. for (i=5;i<10;i++) { printf("%d \n",acc[i].account_number);...
Delete it and earn money honestly - with a proper job.
Of course you get junk. i at that point is 5, which is off the end of the array. You need to give fwrite the pointer to the START of the memory...
Separate names with a comma.