CTS
Company
undefined
void main()
{
if(null==null)
{
printf("m4maths");
}
else
{
printf("error");
]
}
Read Solution (Total 8)
-
- This program is wrong in the term of using braces{} in the place of this braces it use ]that braces
- 8 years agoHelpfull: Yes(6) No(0)
- compilation error
null cannot be used as a variable and it is not declared
usage of ] instead of } - 8 years agoHelpfull: Yes(3) No(1)
- question have mistake } brakes and if we define value of null like int null so out put is m4maths and if we define value is null =0 so output is also m4maths if we do not define anything so get error
- 8 years agoHelpfull: Yes(2) No(0)
- if we change else
{
printf("error");
]
] to }
then out is m4maths - 8 years agoHelpfull: Yes(1) No(0)
- Errors in both null declaration and ] braces.
- 8 years agoHelpfull: Yes(1) No(0)
- There is just a single error in terms of braces , else the program will work fine.
o/p= m4maths. - 8 years agoHelpfull: Yes(0) No(1)
- if we ignore square braces "]" than the above program still give error (undefined symbol null)
- 8 years agoHelpfull: Yes(0) No(0)
- 1) un defined symbol null
2) on Line 10 ] is wrong - 8 years agoHelpfull: Yes(0) No(0)
CTS Other Question
Three person Anil, Ram and Rishi whose salary together amounts to Rs. 81,000 spends 80%, 85% and 75% of their salaries respectively. If their savings are in the ratio of 8 : 9 : 20, find the salary of Ram.
1) Rs. 26,000
2) Rs. 27,000
3) Rs. 24,000
4) Rs. 30,000
In a class out of 150 studs participated in various games foot ball ,basket ball, cricket are 120, 130,135 respecly and 5 stud are not playing any one of then then find the least no of studs which are are playing all the games