Solution to Duplicate define

This commit is contained in:
2024-02-03 11:12:24 +05:30
parent 8c34938ee3
commit fcb8c87ca6
4 changed files with 43 additions and 11 deletions

View File

@@ -6,7 +6,7 @@
* Description:
*
* Version: 1.0
* Created: 02/02/24 10:43:11 PM IST
* Created: 03/02/24 10:51:41 AM IST
* Revision: none
* Compiler: gcc
*
@@ -16,9 +16,9 @@
* =====================================================================================
*/
#include "A.h"
#include "B.h"
#define square(x) ( x*x )
#define square(x) (x*x)
int foo(int b);
int foo(int b){
@@ -27,5 +27,6 @@ int foo(int b){
int main(){
int a = square(15);
return 0;
}