Answer Posted / tapan pal
C
1)Structured programing.
2)In build functions are used to allocate the memory
dynamically.
3)Struct members are public by default.
4)Data and functions are separated.
C++
1)Object oriented programing.
2)New ,Delete operators are used to allocate the memory
dynamically
3)class members are private by default.
4)Together data and functions into single entity.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is it better to use malloc() or calloc()?
What is the size of empty structure in c?
What is the difference between text and binary modes?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Differentiate between calloc and malloc.
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is extern storage class in c?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
What is the significance of scope resolution operator?
How can I remove the leading spaces from a string?
Is main a keyword in c?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
If I have a char * variable pointing to the name of a function ..
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain how do you print an address?