program to print this triangle
*
* *
* * *
Answers were Sorted based on User's Feedback
Answer / rajesh
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=i;j++)
printf(""+"*",i,j);
}
}
| Is This Answer Correct ? | 8 Yes | 58 No |
Answer / jayasreesampath
#include<stdio.h>
main()
{
int i,j;
for(i=1;i<=3;i++)
{
for(j=1;j<=3;j++)
printf("\n",i,j);
}
}
| Is This Answer Correct ? | 23 Yes | 91 No |
Consider a c++ template funtion template<class T> T& Add(T a, T b){return a+b ;} if this function is called as T c = Add("SAM", "SUNG"); what will happen? What is the problem in the template declaration/ How to solve the problem.
In what situations do you have to use initialization list rather than assignment in constructors?
What's the most powerful programming language?
Can I learn c++ without learning c?
What do you mean by vtable and vptr in c++?
Describe the syntax of single inheritance in C++?
What is the difference between delegation and implemented-in-terms-of?
When can you tell that a memory leak will occur?
What is meaning of in c++?
Which software is best for c++ programming?
Why do we need pointers?
Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number