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

#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer

10 Answers   Wipro,


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 .

3 Answers  


how to convert decimal to hexadecimal without using arrays just loops

2 Answers  


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

0 Answers   TCS,


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  






Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL

0 Answers  


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

1 Answers  


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............

1 Answers  


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

1 Answers   TCS,


Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  


I can not get my C++ program to work right. It is supposed to tell if a word is a palindrome or not, but it only tells thet the word is not a palindrome. And I can't fix it.

1 Answers  


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

3 Answers  


Categories