I have a c file and a header file. I wanted to use the variable explicity using C. How to use extern
keyword for the case below :
glob.h
#ifndef GLOB_H
#define GLOB_H
static int a=10;
#endif
Main program
#include"glob.h"
int c = 20;
void loop()
{
if(c>a)
{
Serial.printf("welcome");
}
}