WAP to generate 2n+1 lines of the following pattern on the
computer screen:
Answers were Sorted based on User's Feedback
Answer / tejaswini dhatrak
#include<stdio.h>
#include<conio.h>
int main()
{
printf(“*”);
for(int i=1;i<=5;i++)
{
printf(“**”);
}
printf(“*”);
return 0;
}
| Is This Answer Correct ? | 1 Yes | 2 No |
What is polymorphism and example?
What does and I oop and sksksk mean?
What is encapsulation in oop?
What are functions in oop?
what is the use of mutable key word
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
What is object in oops?
What is the significance of classes in oop?
What is the default size allocated for array in the statement if size not specified " int a[] "
How to hide the base class functionality in Inheritance?
what do you mean by static member variable?
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5