More Organised

This commit is contained in:
2024-02-02 22:57:09 +05:30
commit 6fc2b0cef0
7 changed files with 329 additions and 0 deletions

21
Header_files/A.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* =====================================================================================
*
* Filename: A.h
*
* Description:
*
* Version: 1.0
* Created: 02/02/24 10:15:59 PM IST
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#define max(a,b) ( a > b ? a : b )
int sum(int a,int b);

21
Header_files/B.h Normal file
View File

@@ -0,0 +1,21 @@
/*
* =====================================================================================
*
* Filename: B.h
*
* Description:
*
* Version: 1.0
* Created: 02/02/24 10:18:06 PM IST
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include "A.h"
#define min(a,b) ( a > b ? b : a )
int multiply ( int a , int b );

31
Header_files/app.c Normal file
View File

@@ -0,0 +1,31 @@
/*
* =====================================================================================
*
* Filename: app.c
*
* Description:
*
* Version: 1.0
* Created: 02/02/24 10:43:11 PM IST
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* Organization:
*
* =====================================================================================
*/
#include "B.h"
#define square(x) ( x*x )
int foo(int b);
int foo(int b){
}
int main(){
int a = square(15);
return 0;
}

28
Header_files/app.i Normal file
View File

@@ -0,0 +1,28 @@
# 0 "app.c"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 0 "<command-line>" 2
# 1 "app.c"
# 19 "app.c"
# 1 "B.h" 1
# 19 "B.h"
# 1 "A.h" 1
# 21 "A.h"
int sum(int a,int b);
# 20 "B.h" 2
int multiply ( int a , int b );
# 20 "app.c" 2
int foo(int b);
int foo(int b){
}
int main(){
int a = ( 15*15 );
return 0;
}