Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1974

C++ FUNCTION TO TAKE ARRAY VARIABLE AS AN ARGUMENT (NEED UR HELP ASAP)!!

by kazmi99 - 01 February, 2023 - 01:48 PM
This post is by a banned member (noarch) - Unhide
noarch  
Supreme
532
Posts
293
Threads
6 Years of service
#9
@kazmi99 there is a response above from a banned user. In this example, the
Code:
printArray
function takes two arguments: an array
Code:
arr
and an integer
Code:
size
. The function loops through the elements of the array using a for loop and prints each element to the console. The
Code:
main
function creates an array
Code:
arr
and calls the
Code:
printArray
function to print the elements of the array to the console.
[Image: ffdw3.gif]
This post is by a banned member (kazmi99) - Unhide
kazmi99  
Registered
154
Posts
25
Threads
2 Years of service
#10
Thank You very much @noarch!
Your help means a lot to me
Whenever you need my help, do ask me
May God Almighty protect you.
This post is by a banned member (kazmi99) - Unhide
kazmi99  
Registered
154
Posts
25
Threads
2 Years of service
Bumped #11
This is a bump

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 2 Guest(s)