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 / 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 |
Explain what is wrong in this statement?
LOGIC OF Bodmas?
What is the most efficient way to count the number of bits which are set in a value?
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
What is a wrapper function in c?
List the difference between a While & Do While loops?
How are Structure passing and returning implemented by the complier?
What is string in c language?
How would you print out the data in a binary tree, level by level, starting at the top?
Write a program using bitwise operators to invert even bits of a given number.
what is the hexidecimal number of 4100?
WAP – represent a char in binary format