What is the difference between declaration and definition?

Answer Posted / sachin bhosale

Declaration Mean You just Declare a variable and Function
their is No Allocation of Memory.But In Defination Actual
use of use declare Variable and Function Assing the value
with accupy Memory as Per their Type.

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1382


What is oops and its features?

575


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2139


Why is polymorphism important in oop?

624


What is encapsulation and abstraction? How are they implemented in C++?

628






Can static class have constructor?

576


What is the point of oop?

642


What is destructor in oop?

615


What is purpose of inheritance?

636


What is an example of genetic polymorphism?

643


What are oops functions?

575


What is encapsulation example?

541


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2056


Can you explain polymorphism?

576


Advantage and disadvantage of routing in telecom sector

778