double x=1.23, what is *(&x)?
NULL? Hint: null pointer.
#include<stdio.h>
void f(int i){i=0;}
int main(){
int i=1; f(i); printf("i=%i\n",i);
return 0; }
#include<stdio.h>
void f(int* i){*i=0;}
int main(){
int i=1; f(&i); printf("i=%i\n",i);
return 0; }
#include<stdio.h>
void f(int* i){i=NULL;}
int main(){
int i=1; f(&i); printf("i=%i\n",i);
return 0; }
void f(double a[]) –
what is actually passed to the function:
a to the first element of the array?
void f(double a[])
gets the array as parameter – can it figure out the size of the array?
int a[5]; and then try
a[999]=1; what