hello everybody
can we change a the adress of a variabl i mean can i put for
exemple for a int *p:
&p=6
?????????
Answer Posted / letskools
No,We cannot change the address of memory of a variable
because the addresses to the variable are provided by the
OS. We can only assign this address to the pointer variable
like this:
int x,*p;
P=&x;
We can change variable value through pointer like this:
*p=4;
but we can't change the variable address through the pointer
and also we can't provide any address to the pointer
variable directly as an "numeric constant" so this statement
is incorrect:
&p=6;
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the difference between procedural and declarative language?
Explain pointer. What are function pointers in C?
Explain how do you use a pointer to a function?
Why is c called c?
How can I write a function that takes a format string and a variable number of arguments?
What is static identifier?
Explain what is a stream?
Write a program to reverse a linked list in c.
When would you use a pointer to a function?
What do you know about the use of bit field?
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
what is the height of tree if leaf node is at level 3. please explain
can anyone suggest some site name..where i can get some good data structure puzzles???
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
find out largest elemant of diagonalmatrix