I am a new to programming, in book i find this: Operator '&'- Returns the address of a variable. &a; returns the actual address of the variable. Ok. But why i can't do this (in commented lines)?
#include <stdio.h>
#include <string.h>
int main(){
char a = 'A';
//int i;
printf("char a is: %c\n",a);
//i=&a;
//printf("adrress of a is: %d\n",i);
}
When compilling i get an error. What is wrong?