0% found this document useful (0 votes)
78 views

JECRC University, Jaipur School of Engineering MCA Semester III Programming in C++ - I Assignment No 3

This document contains assignments for a Programming in C++ course. It includes 6 questions - the first two ask students to write programs to print specified patterns using asterisks, the third asks students to explain pointers in C++, the fourth asks them to write a class to represent time and overload the addition operator, the fifth asks them to overload the pre and post increment operators, and the sixth asks them to explain dynamic constructors and write a program to initialize an array using one.

Uploaded by

Anonymous BOreSF
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

JECRC University, Jaipur School of Engineering MCA Semester III Programming in C++ - I Assignment No 3

This document contains assignments for a Programming in C++ course. It includes 6 questions - the first two ask students to write programs to print specified patterns using asterisks, the third asks students to explain pointers in C++, the fourth asks them to write a class to represent time and overload the addition operator, the fifth asks them to overload the pre and post increment operators, and the sixth asks them to explain dynamic constructors and write a program to initialize an array using one.

Uploaded by

Anonymous BOreSF
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

JECRC University, Jaipur

School of Engineering
MCA Semester III
Programming in C++ - I
ASSIGNMENT NO 3

Q1.Write a C++ program to print following pattern

**********
**** ****
*** ***
** **
* *
** **
*** ***
**** ****
**********

Q2.Write a C++ program to print following pattern

*
***
*****
*******
*********
*******
*****
***
*

Q3. Explain this pointer in C++


Q4. Write a program that defines a class Time that store time values as hours,
min and sec respectively. Perform operation t3=t1+t2 on its object
Q5.Write a program to overload unary pre and post increment

Q6. Explain dynamic constructor. Write a program to initialize array using


dynamic constructor

You might also like