C examples for Function:Function Definition
Function that prints a report header using the \t escape sequence to print a tab between words.
#include <stdio.h> void printReportHeader(); //function prototype int main() { //from w w w . ja v a 2s . c o m printReportHeader(); } //function definition void printReportHeader() { printf("\nColumn1\tColumn2\tColumn3\tColumn4\n"); }