Variable Scope in C program ( New 2020) | Types of Variable in C | Beginners Guide

preview_player
Показать описание
In this tutorial video i have discussed about the following topics
1.What is variable scope in C program
2.Types of variables in C program
3 . Local variable with an example
4.Global variable with an example

Рекомендации по теме
Комментарии
Автор

#include<stdio.h>
int a=5;
int b=10;
main()
{
printf("The variable a : %d\n", a);
printf("The variable b : %d\n", b);
add();
}
void add()
{
printf("A+B : %d", (a+b));
}




Facing error with this code call "add function not declare in main function". What's wrong with it?

hardikpatel