How to replace an element in an array in C++

preview_player
Показать описание
This is a simple C++ Program to replace an element in an array.
Like, Comments, Share and SUBSCRIBE @programmingwithannu Thanks!
#replace #element #array #programming #program #replaceanelementinanarray #tutorial #replaceanelement
Рекомендации по теме
Комментарии
Автор

thanks, bro it saved me a 10 point quiz.

sherrygamingzone
Автор

it was really helpful .thank you so much.
can you make a video where we can replace an element of an array with 0 when we have negtive values?

tasnimjerin
Автор

EDIT: It works now, if I use this int arr[5]; (or with any other numbers) instead of int arr[n];

I have an error for this line int arr[n];
It says "expression did not evaluate to a constant"

How can I solve this? Any idea? The code doesn' t work for me due to this error.

sarahhold
welcome to shbcf.ru