Answers for "#define function in c"

C
2

c# function

public void SayHello()
{
Console.WriteLine("Hello") ;
}
//as basic as it gets 
//for a function
Posted by: Guest on February-17-2020
1

#define in c

#include <stdio.h>

#define NAME "TechOnTheNet.com"
#define AGE 10

int main()
{
   printf("%s is over %d years old.\n", NAME, AGE);
   return 0;
}
Posted by: Guest on September-24-2020
5

how to write function in c

#include <stdio.h>

// Here is a function declaraction
// It is declared as "int", meaning it returns an integer
/*
	Here are the return types you can use:
    	char,
        double,
        float,
        int,
        void(meaning there is no return type)
*/
int MyAge() {
	return 25;
}

// MAIN FUNCTION
int main(void) {
	// CALLING THE FUNCTION WE MADE
    MyAge();
}
Posted by: Guest on April-11-2020
0

function in c#

//function example
using System;
					
public class Program
{
	static void function(){
		Console.WriteLine("I am a function!");
	}
	public static void Main()
	{
		function();
	}
}
Posted by: Guest on March-30-2020
0

#define in c

#define NAME "TechOnTheNet.com"
Posted by: Guest on September-24-2020

Code answers related to "C"

Browse Popular Code Answers by Language