what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / siddiqui mohd. faisal
declaration : int a;
declaration means here a is declared as integer variable
initialization : int a = 5;
initialization is whatever you have declared give that
variable some value
definition : int a;
definition is whatever variable you have declared give it's
datatype as here a is declared as integer variable
| Is This Answer Correct ? | 32 Yes | 21 No |
Post New Answer View All Answers
what are non standard function in c
What are the types of c language?
Is it better to use a macro or a function?
What is switch in c?
What is the correct declaration of main?
In a byte, what is the maximum decimal number that you can accommodate?
In a switch statement, what will happen if a break statement is omitted?
What is hashing in c?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is nested structure in c?
provide an example of the Group by clause, when would you use this clause
How the c program is executed?
What is return type in c?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.