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
13 Answers
+ 3
None. There is a space before a letter in (a), and that statement doesnt output any space.
+ 1
urgreat=correct
0
compile error
0
urgreat is the correct answer
0
The output will be "urgreat" because the cout statements concatenate characters without spaces or formatting.
- 1
neither. a shouldnt output a space at the start
- 2
a) is correct
- 2
Error
- 2
******x******
*****xxx*****
****xxxxx****
***xxxxxxx***
**xxxxxxxxx**
*xxxxxxxxxxx*
xxxxxxxxxxxxx
can someone help me with this pattern
- 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.
- 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.
- 4
its of course b). here there will be no space between them.
- 4
sorry for the inconvenient. the answer is b.