How to upgrade LOOP environment,
I just mean, how can i make loop statement editable ?
I just try some program using loop statement and checking it
in multiple compilers.
Every compiler showing different output, what's the wrong ?
is it a compiler based problem, or loop based problem, tell
me why ?
and what will be the debugging process, for this kind of
problem ?
Answer / xxxxxx
You know very well , Different processors executes instructions differently. Thats why you are getting different outputs for different outputs.
Is This Answer Correct ? | 1 Yes | 0 No |
void main() { for(int i=0;i<5;i++); printf("%d",i); } What is the output?..
32 Answers College School Exams Tests, CTS, HCL, iGate, SmartData,
Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .
Write a c-programe that input one number of four digits and find digits sum?
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
How to create a program that lists countries capitals when country is entered? (Terribly sorry, I'm a complete novist to coding with C, am looking for inspiration and general tips on how to code and create this program.)
how tally is useful?
What is the code for following o/p * * * * * * * * * * * * * * * *
void main() { int i=5; printf("%d",i+++++i); }
void main() { int i=1; printf("%d%d%d",i,++i,i++); } Cau u say the output....?
How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try some program using loop statement and checking it in multiple compilers. Every compiler showing different output, what's the wrong ? is it a compiler based problem, or loop based problem, tell me why ? and what will be the debugging process, for this kind of problem ?
what is run time error?
loop1: { x=i<n?(i++):0; printf("%d",i); exit(x); continue; } Error- misplaced continue. Doubt-1.will the exit(x) be executed for all values of x 2.will this statement go out of the program.