1.

Find and write the output of the following C++ program code:Note: Assume all required header files are already being included in the program.void main( ){int Ar[ ] = { 6 , 3 , 8 , 10 , 4 , 6 , 7} ;int *Ptr = Ar , I ; cout

Answer»

C++ Programming Language

Output:

DATA-cfemail="ba8dfa8b8b" href="/cdn-cgi/l/email-protection">[email protected]@

[email protected]@

[email protected]@

Explanation:

In the following program that is written in the C++ Programming Language.

  • Declare integer data TYPE variable 'Ar' and initialize the following elements in it.
  • Set the integer pointer data type variable 'Ptr' and initialize variable 'Ar' and the variable 'I' in it.
  • Then, PRINT the pointer elements with the pre and the post-increment with @.
  • Finally, set the for loop that prints the elements of the array with @.

LEARN More:

brainly.in/question/5986161



Discussion

No Comment Found