changed code removed main from each file
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int my_float()
|
||||
{
|
||||
float f;
|
||||
double d;
|
||||
|
@ -6,9 +6,3 @@ int foo()
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
foo();
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int hello()
|
||||
{
|
||||
printf("Hello C Programming Language 2025 Examples");
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
int hex_scan()
|
||||
{
|
||||
|
||||
int a, b;
|
||||
int a;
|
||||
|
||||
printf("Enter a number : ");
|
||||
|
||||
|
@ -1,5 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include "hex_read_scanf.c"
|
||||
|
||||
#ifndef HEX_READ_SCANF_H
|
||||
#define HEX_READ_SCANF_H
|
||||
|
||||
extern void hex_scan();
|
||||
|
||||
#endif // HEX_READ_SCANF_H
|
||||
|
||||
int main()
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int print_example()
|
||||
{
|
||||
int a = 10, b = 20;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int print_with_scan()
|
||||
{
|
||||
int a , b ;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int my_scan()
|
||||
{
|
||||
int a;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int scan_two_numbers()
|
||||
{
|
||||
int a, b;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
int addition()
|
||||
{
|
||||
int a , b , c;
|
||||
|
||||
|
Reference in New Issue
Block a user