0

What is answer for this code

cout<<"u"<<"r"<<"great";ans:a) urgreatb)u r great in cpp while writing code ,blank space r only for our convenient but for output it is not like that

1st Jul 2016, 3:58 PM
raju
raju - avatar
13 Respostas
+ 3
None. There is a space before a letter in (a), and that statement doesnt output any space.
2nd Jul 2016, 7:31 PM
Garme Kain
Garme Kain - avatar
+ 1
urgreat=correct
23rd Sep 2016, 1:05 AM
Nathan
Nathan - avatar
0
compile error
3rd Aug 2016, 1:52 AM
Null Void
Null Void - avatar
0
urgreat is the correct answer
12th Sep 2016, 12:23 AM
Aswin Michael
0
The output will be "urgreat" because the cout statements concatenate characters without spaces or formatting.
8th May 2024, 7:09 AM
Syed Ali Murtaza
Syed Ali Murtaza - avatar
- 1
neither. a shouldnt output a space at the start
7th Jul 2016, 7:12 AM
Armandas Bolevičius
Armandas Bolevičius - avatar
- 2
a) is correct
2nd Jul 2016, 2:14 AM
siva
siva - avatar
- 2
Error
6th Sep 2016, 4:07 AM
Yassen Maged Youssef
Yassen Maged Youssef - avatar
- 2
******x****** *****xxx***** ****xxxxx**** ***xxxxxxx*** **xxxxxxxxx** *xxxxxxxxxxx* xxxxxxxxxxxxx can someone help me with this pattern
7th Sep 2016, 4:22 PM
rehan altaf
rehan altaf - avatar
- 2
Write a C++ program that accepts a single integer value entered by the user. If the value entered is less than one, the program prints nothing. If the user enters a positive integer, n, the program prints an n x n box drawn with * characters.
8th Sep 2016, 2:57 PM
rehan altaf
rehan altaf - avatar
- 2
an efficient C++ program to find the number of characters in a number entered by the user. At the start of the program the compiler should ask the user to enter a number, and then display the number entered by the user and total number of characters in that number.
8th Sep 2016, 5:35 PM
rehan altaf
rehan altaf - avatar
- 4
its of course b). here there will be no space between them.
3rd Aug 2016, 12:34 PM
Ankit
- 4
sorry for the inconvenient. the answer is b.
3rd Aug 2016, 12:35 PM
Ankit