wat is the difference between array and pointer?
Answers were Sorted based on User's Feedback
Answer / unni
array is a fixed sequence collection of elements of the same datatype:
pointer contains memory address as their values...
| Is This Answer Correct ? | 18 Yes | 1 No |
Answer / shraddha choubey
1)array do not contains address.. but pointers contains address .
2)array means continues memory location but,pointers do not.
| Is This Answer Correct ? | 10 Yes | 4 No |
Answer / sanjay gupta
array is the similsr type of data and pointer is a momery location of element...
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / lucky
In a arry we have to specify length before we use.
But in the case of poiters we don't need.
| Is This Answer Correct ? | 0 Yes | 1 No |
what is purpose of fflush(stdin) function
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
what is available in C language but not in C++?
10 Answers CTS, TCS,
Why is it usually a bad idea to use gets()? Suggest a workaround.
9.how do you write a function that takes a variable number of arguments? What is the prototype of printf () function? 10.How do you access command-line arguments? 11.what does ‘#include<stdio.h>’ mean? 12.what is the difference between #include<> and #include”…”? 13.what are # pragma staments? 14.what is the most appropriate way to write a multi-statement macro?
what would be the output of the following program? main() { int k = 123; char *ptr; ptr = &k; printf("%d",*ptr); }
Explain function pointer with exapmles.
Explain what is wrong in this statement?
how to connect oracle in C/C++.
What are the applications of c language?
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
How do you write a program which produces its own source code as its output?