Computer Science, asked by manasroy172001, 8 months ago

write a c program to calculate the sequence sum of first n terms using dynamic memory allocation

Answers

Answered by hodeee4
0

Answer:

First create all variables required in the program. Ask the user to enter the total numbers of elements and store it in the variable count. Allocate memory to the int pointer variable . Use one for loop and read the element count. Ask the user to enter the element and store it in arr .

Explanation:

  • please mark as brainliest answer
Answered by nipunchoudari
0

Answer:

‘n’ numbers using dynamically allocating memory : In this tutorial, we will learn how to find the sum of ‘n’numbers by allocating memory dynamically. Allocating memory dynamicallymeans we will use only the amount of memory that is required. If user will enter 10 numbers, we will allocate for 10numbers.

Explanation:

Mark me as a brainlist

Similar questions