unfortunatley i dont have a compiler
but i think i get it.
i = 0
j = 2
i = 3
j = 4
i = 6
j = 6
Type: Posts; User: juststartedC
unfortunatley i dont have a compiler
but i think i get it.
i = 0
j = 2
i = 3
j = 4
i = 6
j = 6
What is the value of variable i and of variable j on line 4 below:
Line Code
1 j=0;
2 for(i=0; i<10;i+=3)
3 j=j+2;
4 // What is the value of variable i and variable j?
Thank you very much
Im at uni right now and i gota compiler, urs works but why do we need three'%'
yes we do but it would be very time consuming for me to go there every time. one more question,
Now say this time we need to out put an integer variable height but with a '%' before it, would...
Thanks for the link robwhit, so this is it right?
fprintf(output,"hello world.\\nHow are you?");
I think you are mistaking me for some one else because i did not copy your code, if i did i would have got a zero aswell.
would it be possible to write the exact fprintf statement, just this once?
anyone out there knows what fprintf statement would display exactly the following:
hello world.\nHow are you?
unfortunately i dont have a compiler, and the person who actually owns this laptop doesnt want me to install one, so i cant try the commands otherwise i would have found out the solution by now, that...
so what fprintf statement should i write to display it like this
Hello world.\nHow are you?
say if i write it like this :
fprintf(output,"Hello world.\n\nHow are you?");
Would it...
Thanks alot aia.
Regarding
wouldnt the \n take it to the nex line thus apearing like this:?
Hello World
How are you?
Thanks a lot adak you are a champ, however, what about questions 4,5,6?
ok this is what i think: (most likely wrong)
1. The program hasnt asked the user for any values and it hasnt stored the value. also i think it needs to initialize a value for count
2. i=0 and...
I am preparing for programing exams at uni, Could some one please help me with these problems?
1. Indicate why the following pseudo-code is likely to produce incorrect output.
Indicate what...
Thank you
Hi, This is a small section of my code which is developed to get an image and store it in an array blah blah and flip the image horizontally and vertically (which works perfectly), however the...
Hi, we have been given an assignment in which we need to use procedures, functions, library routines etc. now there is a mainline file and a library file. we were told we should use "make" to compile...
can some one quickly answer this . guess even
What, if any, is the cause of the compiler error that may be produced when compiling the following program?
int main ( int argc, char * argv[] )...
oright dont worry about this thread my program works fine now
Thanks anyway
In reply to MacGyver, if you dont want to help, you dont have to. you dont need to call me a dirtbag you can keep the comments for yourself.
Anyway i have done a bit of a work on it and compiles and...
Hi, i was wondering if there is anyone out there kind enough to do the following code for me. i have no idea where to start since i dont know much about arrays.This is what the program should do:
...
students are not allowed but they do it anyway.
you may be write about the effort wasted but that still doesnt satisfy my curiosity :)
what would work:
change the name of the variables?
add...
Hi people.
We are handing in our code as a university assignment. all the students get as much help as possible from each other and we even have some similar codes (please bare in mind that this...
okidoki thanks a lot guys sorry to keep asking the same question. you may blame the lecturer :)
I just cant afford to fail this unit, ill be kicked out of uni
Thanks