Function with no Arguments with Return value in C - C Programming Tutorial 107

preview_player
Показать описание
Function with no Arguments with Return value in C - C Programming Tutorial 107
- How to create a function; which does not accept any parameters but returns a value

Example Code:
#include <stdio.h>
float PI();
float E();
int main()
{
printf("%.3f\n",PI()); // 3.142
printf("%.3f\n",E()); // 2.718

return 0;
}
float PI()
{
return 3.142;
}
float E()
{
return 2.718;
}

Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.

=========================================

Follow the link for next video:

Follow the link for previous video:

=========================================

C Programming Tutorials Playlist:

=========================================
Watch My Other Useful Tutorials:-

Computer Programming Fundamentals Playlist:-

C Practical LAB Exercises Playlist:-

C++ Tutorials Playlist:

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #CProgramming #CProgrammingTutorial
Рекомендации по теме
Комментарии
Автор

Once you watch the video; answer the following questions:
1. What is the value of mathematical constant PI ?
2. What is the value of mathematical constant E ?

ChidresTechTutorials
visit shbcf.ru