Posted by avinash on Sunday, August 28, 2011 at 6:08am.
Assistance needed.
First, if you post coding question, you will need to specify the language you're using. Many modern languages use similar syntax (C++ family).
Second, Java has the same "compiler" on all platforms, while C++ has many implementation dependencies, depending on the platform and the compiler. So for C++ questions, the compiler and platform (machine type) should also be specified.
Example: (first question)
int i;
while (i<=10)
printf("%d\n", i); j++;
The value if i had not been initialized. Java and some compilers may condone this, but many C/C++ compilers do not, and give rise to run-time errors or variable results.
Finally, coding is a very precise activity. Any omission of a period (.) or a semi-colon could make a big difference, not to mention the wrong character.
The sight of code like:
"maino
int i; for (i=l ; i<=1 0; i++) printf("%d\n", i); I D) maino "
does not make it worthwhile to spend time looking at the code.
If you want your code looked at seriously, you would have to treat your code the same way.
Alternatively, you could consider posting a link to a scanned page to avoid copying code, which is an error-prone activity.
Related Questions
Computer Science - //program that puts two lists in order in one single list ...
Computers - //program that puts two lists in order in one single list with all ...
C++ - 1. while(c <= 5) { product *= c; c++; 2. while ( z > 0 ) sum...
C programming - Enter two integers between 1 to 10 3 4 Both numbers are less ...
computer - A-Asking the user to pick a number between 1 and 20 and having the ...
Computer Science Computer Programming - Please help! I cannot figure out what I ...
C++ Programming - Can any1 please fix this c++ source problem /*Circle Are ...
c++ program - how can a modfiy this source code to a menu. #include <...
computer science - The variable cp_arr has been declared as an array of 26 ...
C# - 5) Suppose you have declared an integer array named scores and you make the...
For Further Reading