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
Arguments Passing Mechanism C++ supports the following argument passing mechanisms: i).  Pass by value: A copy of the arguments value is made and passed to the called functio

Define Commonly Used Built-in Library Functions? Comprise opened a file pointer you will desire to use it for either input or output. The C language supplies a set of functions

Suppose we use Lists to represent a movie which has a title, cast and year. For example, the following list represents the movie, "Die Hardly", with the cast "Bruce Willing" and "T


obtain two numbers from thekey board,and determain and display(if either)is the larger of two numbers.

C program to check display days and month main() {           int months, days;           clrscr();           printf("ENTER DAYS: ");           scanf("%d", &days);


Question: (a) Describe what are dynamic pointers. Show their memory representations diagrammatically. (b) Write short notes about pointers in arrays, paying attention on

#solution for decode the code for smuglers

Write a program that keeps record of football results. Program stores following information about each match: Description Type and/or size name of home team max. 25 characters name