Find the error (2.5*2=5)
(a) X=y=z=0.5,2.0-5.75
(b) s=15;
Answers were Sorted based on User's Feedback
Answer / preeti
If a float variable multiply by an integer, it will give
answer in float. So the answer should be in float.
| Is This Answer Correct ? | 17 Yes | 3 No |
Answer / k.k
(a) you can not do
x=y=z=0.5 in c++ it will throw error..
undefine symbol y & z...
| Is This Answer Correct ? | 6 Yes | 0 No |
To generate the series 1+3+5+7+... using C program
when i use cout or cin call & then either << or >> .....it shows declaration syntax error...what should i do? cout<<"anything"; int a; cin>>a; return 0;
Answering Yes or No in C++...using only stdio.h and conio.h..........help me please...? here's must be the output of the program: Screen A Exam No. items Score 1 20 20 2 35 35 Another Entry? [Y] or [N] : Screen B: Record No. Student's Name: 1 Fernando Torres 2 Chuck Norris Note: if you press Y, the program must repeat the procedure in screen A, then if N, the program must proceed to the screen B....Please Help me out............
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.)
what is meant by linking error? how can i solve it? if there is a linking error " unable to open file 'cos.obj'? then what should i do?
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }
What is probability to guarantee that the task a programmer is going to create will be created and be able to run on a particular system (RTOS/GPOS).
How to convert hexadecimal to binary using c language..
1 Answers Bajaj, GAIL, Satyam, Zenqa,
void main() { int i=5; printf("%d",i+++++i); }
A sample program using data structure? what is file handling?
how to convert decimal to hexadecimal without using arrays just loops
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); }