Computer Science, asked by theshaikh123, 9 months ago

Q.Write a program in C++ that first initializes an array 5 given nos. The program must add these numbers by traversing this array with the size of numbers to which it points. The program must also print the sum and pointer address with addition of every no as well as ending address.

Answers

Answered by moulishriram9155
0

Answer:

C++ is a general-purpose object oriented programming language with features, such as, economy of expression, modern flow control and data structures, and a rich set of operators. C++ is not tied to any particular hardware or system and it is easy to write programs that will run without change on any machine that supports C++. The purpose of this book is to provide an introductory text for understanding the C++ language and to empower the reader to write C++ programs. The book also introduces reader to the paradigm of object oriented programming. The main strength and USP of this book is that it is written by a student for students but will be equally useful for intermediate level programmers, and software development professional. The author is in the best position to identify and address issues and areas where a student needs maximum help in understanding the C++ concepts and developing programming skills. The book is written in an easy to comprehend format and includes inline programs, illustrations, number of well chosen completely solved and tested examples to explain difficult concepts associated with OOP and unsolved exercises to ensure that reader understands both C++ language and underneath algorithms. The book also covers database concepts including SQL, data structures and explains how to interface C++ programs with any database using Open database connectivity (ODBC); basic windows graphics programming and a write up on Standard Template Library (STL) which is now part of standard C++. One salient feature of this book is not to fathom the depths of topics such as the Databases, SQL, ODBC, Windows API, the Windows Graphics Device Interface GDI, STL, or any other hardcore technical syntax. Instead, we endeavor to show you how to speedily build real-world applications with only basic knowledge of the Windows architecture. We do know that these are sticky subjects that take many pages to cover appropriately. However, an interested reader can always refer to many other volumes dedicated to such topics.

Explanation:

Similar questions