An array name contains base address of the array. Can we
change the base address of the array?
Answers were Sorted based on User's Feedback
Answer / sandeep rehlan
Not, we cann'e base change the base address of the array
because base address is a constant value.
like
int const i=5;
i++;
in this case i cann't be incremented. So, the base address
cann't be incremented.
| Is This Answer Correct ? | 6 Yes | 1 No |
It's not possible , address is an default we can't change
that value
| Is This Answer Correct ? | 4 Yes | 3 No |
When would you use a pointer to a function?
main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?
is c language is a object oreinted language?
Explain how can you determine the size of an allocated portion of memory?
Can a binary search tree be used as an index? If yes, how? Explain
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 operator promotion?
In which category does main function belong??
How can I delete a file?
HOW TO HANDLE EXCEPTIONS IN C
Why doesnt the call scanf work?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?