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 |
printy(a=3,a=2)
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(); } }
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
what is macro in c? Difference between single linked list & double linked list what is fifo & lifo? what is stack & queue?
void main() { int i=7; printf("N= %*d",i,i); }
#include"stdio.h" #include"conio.h" void main() { int a; printf("\n enter a number:"); scanf("%c\n"); getch(); }
char* f() return "hello:"; void main() {char *str=f(); }
What are the different types of errors in C and when they occur?
which typw of errors ? & how to solve it ?
A sample program using data structure? what is file handling?
what is the large sustained error signal that eventually cause the controller output to drive to its limit
What is the code for following o/p * * * * * * * * * * * * * * * *