answersLogoWhite

0

What is declared?

User Avatar

Anonymous

12y ago
Updated: 1/11/2023

That is when you declare a variable, outside of any scope, so that any function or similar, can use it.

example....

#include<stdio.h>

int a=10;

main()

{

int b=20,c;

c=a+b;

printf("\n%d\t",c);

}

void fact_num()

{

int fact=1,i;

for(i=1;i<=a;i++)

{

fact=fact*i;

}

printf("\n FACTORIAL = %d",fact);

}

What else can I help you with?