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 |
In how much time you will write this c program? Prime nos from 1 to 1000
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
How can a string be converted to a number?
c language interview questions & answer
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
diff. between *p and **p
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER
What is getch?
If we have an array of Interger values, find out a sub array which has a maximum value of the array and start and end positions of the array..The sub array must be contiguious. Take the start add to be 4000. For Ex if we have an array arr[] = {-1,-2,-5,9,4,3,-6,8,7,6,5,-3} here the sub array of max would be {8,7,6,5} coz the sum of max contiguous array is 8+7+6+5 = 26.The start and end position is 4014(8) and 4020(5).
5 Answers Microsoft, Motorola,
Explain how can a program be made to print the name of a source file where an error occurs?
Can the size of an array be declared at runtime?
What are pointers in C? Give an example where to illustrate their significance.