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 |
#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }
what is exceptions?
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?
difference between c/c++ programing language? what is necessesity of c++ when existing c programing language?
2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% or more in order to pass (total = coursework marks + examination marks) b. A total mark of 39% is moderated to 40% c. Each component must be passed with a minimum mark of 20/50. If a student scores a total of 40% or more but does not achieve the minimum mark in either component he/she is given a technical fail of 39% (this mark is not moderated to 40%) d. Grades are awarded on marks that fall into the following categories. Mark 100-70 69-60 59-50 49-40 39-0 Grade A B C D E Write a program to input the marks for both components (coursework marks out of 50 and examination marks out of 50), out put the final mark and grade after any moderation. [30]
Write down the difference between c. Loop and goto statement d. (!0) and (!1) e. (1= =! 1) and (1!=1) f. NULL and !NULL
what is meant for variable not found?
Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.
who was the present cheif governor of reserve bank of india
6 Answers State Bank Of India SBI,
Find the error (2.5*2=5) (a) X=y=z=0.5,2.0-5.75 (b) s=15;
what is the error in the following code: main() { int i=400,j; j=(i*i)/i; }
I'm having trouble with coming up with the correct code. Do I need to put a loop? Please let me know if I'm on the right track and what areas I need to correct. I still don't have a good grasp on this programming stuff. Thanks =) The assignment was to write a program using string functions that accepts a coded value of an item and displays its equivalent tag price. The base of the keys: 0 1 2 3 4 5 6 7 8 9 X C O M P U T E R S Sample I/O Dialogue: Enter coded value: TR.XX Tag Price : 68.00