| Other C C++ Errors Interview Questions |
|| Asked @
|Write a c-programe that input one number of four digits and find digits sum?
|errors are known as?
|what is the error in the following code:
|how tally is useful?
|Assume that the int variables i and j have been
declared, and that n has been declared and initialized.
Write code that causes a "triangle" of asterisks of size
n to be output to the screen. Specifically, n lines should
be printed out, the first consisting of a single asterisk,
the second consisting of two asterisks, the third
consistings of three, etc. The last line should consist of
n asterisks. Thus, for example, if n has value 3, the
output of your code should be
You should not output any space characters.
Hint: Use a for loop nested inside another for loop.
|What is the out put of this programme?
Entering numbers are
printf("\n enter a number:");
|Given that two int variables, total and amount , have
been declared, write a sequence of statements that:
initializes total to 0
reads three values into amount , one at a time.
After each value is read in to amount , it is added to the
value in total (that is, total is incremented by the value
in amount ).
Instructor's notes: If you use a loop, it must be a for loop.
And if you use a loop control variable for counting, you
must declare it.
|difference between c/c++ programing language?
what is necessesity of c++ when existing c programing
|when i use cout or cin call & then either << or >> .....it shows
declaration syntax error...what should i do?
|For more C C++ Errors Interview Questions Click Here |