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 does oop mean in snapchat?
if u write a class do u write Assignment operator and copy constructor
What is the default size allocated for array in the statement if size not specified " int a[] "
What is command routing in MFC
write a C++ program for booking using constructor and destructor.
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
Explain virtual inheritance?
What is inheritance and how many types of inheritance?
What is class encapsulation?
What are the benefits of oop?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output