What is the Difference between Class and Struct?
Answer Posted / talib hassan
1.Structure cannot provide the re usability but class provide the re usability of code.
2. All the members of structure are public but a class provide the several types of accessing methods.
3. structure cannot support polymorphism concept but class provide polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a progarm to find the length of string using switch case?
Explain how do you generate random numbers in c?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Why do we need volatile in c?
Who developed c language and when?
what is the different bitween abap and abap-hr?
What are qualifiers and modifiers c?
Define and explain about ! Operator?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+....
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What is a void * in c?
Explain what are its uses in c programming?
What is difference between union and structure in c?
What do you mean by dynamic memory allocation in c? What functions are used?