what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / prakash
Declaration: int a;(does not allocate memory)
Initialisation: a=5;(value is assigned for 'a')
Definition: int a=5;(allocates memory)
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is the translation phases used in c language?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What does a pointer variable always consist of?
What is the purpose of macro in C language?
What is pivot in c?
What are variables and it what way is it different from constants?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What is a null pointer in c?
What is modeling?
What are the two types of structure?
List some applications of c programming language?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Is printf a keyword?
How does free() know explain how much memory to release?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }