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
I need to include files so you can understand easier.

Program to design list in c: Write a program in c to insert the values in list void main() { int i=0; char a[20]; clrscr(); printf("Enter the line\n");

Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim

convert string s into palindrome by doing character replacement


#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi

Objective of this Program: (a) To learn more about modularization of a program into independent modules, (b) To use arrays in a program, (c) To get some experience with us

Aim: To implement a program to swap two numbers using reference arguments. Code: void swap(int *a, int *b) {             int temp;             temp=*a;

Pos Console CPP Unit Testing Project Description: Do the CPPUnit Testing for the project. Have all the functions done. Skills required are Android, C Programming, C++ Prog

Question 1) What are the commonly used input/output functions in C? Question 2) What is the difference between function declaration and function definition? Write a recursive