Difference between Class and Struct.
Answer Posted / ajay prajapat
1. Structure is value type where is class is refrance
type.So class data is store in heap where as stuct data are
store in stack.
2. default type of function in struct is public where as
private in class
| Is This Answer Correct ? | 55 Yes | 15 No |
Post New Answer View All Answers
Difference between linking and loading?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Explain how can a program be made to print the line number where an error occurs?
Disadvantages of C language.
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What are the various types of control structures in programming?
What is structure in c language?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Explain what are bus errors, memory faults, and core dumps?
What is adt in c programming?
difference between Low, Middle, High Level languages in c ?
write a c program to find the sum of five entered numbers using an array named number
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.