asked 150k views
4 votes
What is resource acquisition initialization?

1 Answer

2 votes

Answer:

Resource Acquisition Initialization or RAII is a C++ programming technique that binds the life cycle of a resource that must be acquired before use (allocated heap memory, thread of execution, open socket, open file, locked mutex, disk space, database connection—anything that exists in limited supply)

Step-by-step explanation:

answered
User Leguman
by
8.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.