What is the difference between declaration and definition?
Answer Posted / alok
defination=(declration+space reservation)
int a; -------------Declaration
a=20; ------------- Defination
For Function
int alok(int a,int b); ---------------Declaration
int a=alok(5,10) ---------------Function call
int alok(int a,int b) Function Defination Logic is here
{
int c=a+b;
return(c);
}
// Alok contact number 9993032168,9650549204
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
How is polymorphism achieved?
How to improve object oriented design skills?
Whats is abstraction in oops?
What are classes oop?
Write a program to sort the number with different sorts in one program ??
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
can we make game by using c
What are oops methods?
What is an advantage of polymorphism?
State what is encapsulation and friend function?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is ambiguity in inheritance?
What is a class and object?
How to hide the base class functionality in Inheritance?