Answer Posted / mohan chaudhari
1.In structure there is no data encapsulation.
but in class, there is data encapsulation.
2.Data member in structure are not private .
In class they are private.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is a lvalue
What is the difference between the local variable and global variable in c?
What are the application of void data type in c?
How can I swap two values without using a temporary?
What is the purpose of void in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Why array is used in c?
What does *p++ do?
Write a code of a general series where the next element is the sum of last k terms.
Do pointers take up memory?
What is malloc() function?
What does 3 periods mean in texting?
What does the c in ctime mean?
What is the stack in c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.