What are the differences among a struct in c & in c++?, C/C++ Programming

A: In C++ a struct is alike to a class except for the default access specifier( refer to other question in the document). In C we ought to include the struct keyword while declaring struct. In c++ we don't need to.

 

Posted Date: 3/20/2013 3:39:07 AM | Location : United States







Related Discussions:- What are the differences among a struct in c & in c++?, Assignment Help, Ask Question on What are the differences among a struct in c & in c++?, Get Answer, Expert's Help, What are the differences among a struct in c & in c++? Discussions

Write discussion on What are the differences among a struct in c & in c++?
Your posts are moderated
Related Questions
What if I wish a local to "die" before the close} of the scope wherein it was created? Can I call a destructor on a local if I want to?

Why should I employ new instead of truthful old malloc()? A: Constructors/destructors, type safety, overridability. Constructors/destructors: unlike malloc(sizeof(Fred)), new

array itself is a pinter.explain

Write a program to sort an array of strings. Use new and delete operators. Write a program to find the factorial of a number using recursion. If we do not accept the number

Project Description: I want someone with experience on adding/compiling/installing the OpenVPN client software within an IP network camera's embedded operating system. Either if

O v e r l o a d i n g U n a r y Op e r a t o r s Us i n g F r i e n d F u n c t i o n cl a ss s i g n { i n t a ,

Project Description: I want an app that the user can download it from the play store and use it as a keyboard for texts and writing. Just like the Samsung keyboard and the arabi

(a) Define a procedure (deep-member x e) that takes a list x and an element e and returns #t if the element e is in the list or in any lists that the list x contains. e.g., (dee

superposition of waves

Define Types of storage classes in C language? There are four storage classes in C language: 1. Automatic storage class. 2. External storage class. 3. Register storage cla