I have stored my some variable inside "myconf.h" as shown below :
/* begin myconf.h variable section */
char name[20] = "tommy";
int age = 26;
/* end of myconf.h */
here is my main C prg. "hello.c" :
#include <stdio.h>
#include <stdlb.h>
#include "myconf.h"
int main(void)
{
printf ("Your name : %s ", name);
printf ("Your age : %d ", age);
return(0);
}
When I run the program , it prints the correct values.
Now let say I change the values of variables insdie "myconf.h" file eg. "robert" & 28 to name and age respectively. When I run the program(without compiling) it still gives me same old values i.e. "tommy" , 26.
WHY SHOULD I COMPILE everytime when I change in "myconf.h" ??
Is ther anyway I can achieve this without compiling everytime C prg.?
Appreciated.
/* begin myconf.h variable section */
char name[20] = "tommy";
int age = 26;
/* end of myconf.h */
here is my main C prg. "hello.c" :
#include <stdio.h>
#include <stdlb.h>
#include "myconf.h"
int main(void)
{
printf ("Your name : %s ", name);
printf ("Your age : %d ", age);
return(0);
}
When I run the program , it prints the correct values.
Now let say I change the values of variables insdie "myconf.h" file eg. "robert" & 28 to name and age respectively. When I run the program(without compiling) it still gives me same old values i.e. "tommy" , 26.
WHY SHOULD I COMPILE everytime when I change in "myconf.h" ??
Is ther anyway I can achieve this without compiling everytime C prg.?
Appreciated.