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



Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;..

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

Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;..

Answer / ajay03002

5.0

Is This Answer Correct ?    9 Yes 2 No

Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;..

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

Post New Answer

More C C++ Errors Interview Questions

printy(a=3,a=2)

3 Answers  


class test { int a; public: test(int b):a(b){} void show(){ cout<<a; } }; void main() { test t1; test t2(5); t1.show(); t2.show(); } }

1 Answers  


I'm having trouble with coming up with the correct code. Thank You!! The assignment was to write a program using string functions that accepts a price of an item and displays its coded value. The base of the keys: X C O M P U T E R S 0 1 2 3 4 5 6 7 8 9 Sample I/O Dialogue: Enter Price: 489.50 Coded Value: PRS.UX

0 Answers  


what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?

2 Answers   TCS,


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

6 Answers   HCL,


#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }

12 Answers   HCL,


char* f() return "hello:"; void main() {char *str=f(); }

1 Answers  


What are the different types of errors in C and when they occur?

4 Answers  


which typw of errors ? & how to solve it ?

0 Answers  


A sample program using data structure? what is file handling?

0 Answers   TCS,


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

1 Answers   TCS,


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

1 Answers  


Categories