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 ?



How to upgrade LOOP environment, I just mean, how can i make loop statement editable ? I just try ..

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

Post New Answer

More C C++ Errors Interview Questions

what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }

4 Answers  


What is the code for following o/p * * * * * * * * * * * * * * * *

1 Answers  


void main() { int i=7; printf("N= %*d",i,i); }

6 Answers   HCL,


what is the large sustained error signal that eventually cause the controller output to drive to its limit

1 Answers   TCS,


write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;

0 Answers  






write a profram for selection sort whats the error in it?

2 Answers  


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,


void main() { int i=5; printf("%d",i+++++i); }

14 Answers   HCL,


I am using Qt 5.6 during compilation it stops and gives error about Qmake The process "C:QtQt5.6.35.6.3msvc2015_64inqmake.exe" crashed. Error while building/deploying project untitled1 (kit: Desktop Qt 5.6.3 MSVC2015 64bit) When executing step "qmake"

0 Answers  


Declaration of Cube Guys please help me.. Is this a right way to declare cube.? If i Compile it. It Says: Cube undeclared what should i do? Please help \thanks in advanced #include<stdio.h> #include<math.h> #include<conio.h> main( ) { float x,y; while(x++<10.0) { printf("Enter Number:"); scanf("%d", &x); y = cube(x); printf("%f %f %f \n", x,pow(x,2),y); cube(x); } { float x; float y; y = x*x*x; } getch(); return (y); }

2 Answers  


how to convert decimal to binary in c using while loop without using array

50 Answers   Apple, Aptech, Arwen Tech, BCS, C2D Software, CEC,


Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.

3 Answers  


Categories