C Program – Call a function before main

by Nideesh C on May 9, 2011 · 0 comments

in C Programming




//Downloaded From theonlinetutorials.com
#include<stdio.h>
#include<conio.h>
void v(void);
#pragma startup v
int main()
 {
 printf("    You are in Main");
 getch();
 return 0;
 }

void v(void)
 {
 clrscr();
 printf("You are in v");
 }



Not Satisfied ? Just search & get the result

Related Posts Plugin for WordPress, Blogger...
Be Sociable, Share!

Related posts:

  1. C program to read two integers M and N and to swap their values. Use a user-defined function for swapping. Output the values of M and N before and after swapping with suitable messages
  2. C program to find the value of sin(x) using the series up to the given accuracy (without using user defined function) Also print sin(x) using library function.
  3. C program to find the value of cos(x) using the series up to the given accuracy (without using user defined function) Also print cos(x) using library function.
  4. C++ Program – Function Overloading
  5. C program to find accept a matrix of order M x N and find the sum of the main diagonal and off diagonal elements

Leave a Comment

Previous post:

Next post: