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 |
What is function in c with example?
how to find anagram without using string functions using only loops in c programming
My teacher ask to make a program that can: Insert record in front Insert record at the end Insert in between Search node record Delete record in front Delete record at the end Delete record in between Using Data structure Linked List type. But I'm really confused about the codes and I can't go through. Please help Thanks in advance. Also here is my unfinished code if someone can make changes it will be more good.
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How can a program be made to print the line number where an error occurs?
Can you mix old-style and new-style function syntax?
What is the difference between void main() and void main (void) give example programme?
How many data structures are there in c?
What is a good data structure to use for storing lines of text?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
what is the differance between pass by reference and pass by value.
What are header files and what are its uses in C programming?