- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are POD types in C++?
POD is an acronym in C++ that means plain old data. It is a class/struct that ONLY has member variables and no methods, constructors, destructors, virtual functions, etc. For example,
Example
#include<iostream> using namespace std; // POD struct MyStruct { int key; string data; }; int main() { struct MyStruct s; s.key = 1; s.data = "hello"; return 0; }
The struct MyStruct has no user-defined ctor, dtor, etc and hence is a POD.
- Related Articles
- What is POD in Perl?
- What are types in C#?
- What are Booleans types in C#?
- What are the data types, value types and reference types in C#?
- What are enumerated data types in C++?
- What are pointer data types in C#?
- What are nullable data types in C#?
- What are dynamic data types in C#?
- What are object data types in C#?
- What are reference data types in C#?
- What are fundamental data types in C++ programming?
- What are different types of constants in C++?
- What are user defined data types in C#?
- What types of loops are supported in C#?
- What are primary data types in C language?

Advertisements