answersLogoWhite

0

Can we write a c plus plus program without objects?

Updated: 8/11/2023
User Avatar

Balastarkgp5996

Lvl 1
7y ago

Best Answer

Since you can create programs in C plus plus (C++) without creating any object you can call the C++ a semi-object-oriented programming language. The C++ programming language was first released in 1983 and it was designed by Bjarne Stroustrup.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

Although object-oriented programming is a major aspect of C++ programming, we can freely mix low-level C-style code with template meta-programming without ever referring to any objects of a class. However, it's hard to imagine any reason for wanting to avoid the use of objects except in the most trivial of applications.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can we write a c plus plus program without objects?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program in C plus plus plus plus How do you write a program in C to swap two variables without using the third oneo swap two variables without using the third one?

To swap two variables without using a third variable, use exclusive or manipulation... a ^= b; b ^= a; a ^= b;


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


A program c plus plus on automorphic numbers or not?

how to write a program that counts automorphic number from 1 to 999


What is the importance of functions in a c plus plus program?

Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


What are entities in c plus plus?

Entities are the objects instantiated by your program, both at compile time and at runtime. Some objects are primitive data types, others are more complex such as objects instantiated from a class.


Write a program in c plus plus to implement macro processor?

Don't write, it is already written, google for 'cpp'.


How do you write program to convert meter to kilometer in c plus plus?

Divide it by 1000.


Do I need to write a program to find a substring in a given string in c plus plus?

No.


Is it possible to immediately run your C plus plus program without compiling it?

No.


What are the advantages of having program in a class in C plus plus?

You don't write programs in a class in C++, you write programs that use classes. Every C++ has at least one function, main, the entry point of the application. You define the classes and functions that are used by your main function. Classes allow you to classify the objects used by your program, allowing data to be manipulated in a highly controlled manner, ensuring consistency and robustness throughout your program.


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.