Write a program to show the usage of storage class:extern.

 /* prog38.h*/

int i=50;

/*prog38.c*/

/* Write a program to show the usage of storage class:extern*/

#include "prog38.h"

#include <stdio.h>

extern int i;

void main()

{

    printf("I=%d\n",i);

    getch();

}

Comments

Popular posts from this blog

Write a program to accept numerator and denominator and find the remainder without using modulus (%) operator using do..while loop.