Thread: Calling init function through main in C

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2015
    Posts
    86

    Calling init function through main in C

    Code:
    #include<stdio.h>
    
     const a * z =Null 
       struct 
     {
     }z;
    
     int init_test (const a *b)
     { 
     z=b;
     }
    
     int main(void){
     {
     init_test(1)
     return0;}
    
    1. I want to call init function through main i dont understand why any one can explain how to od this?
    Last edited by amahmoo; 11-22-2015 at 12:27 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 06-10-2013, 04:03 PM
  2. Calling this function in my main.
    By filadon in forum C Programming
    Replies: 3
    Last Post: 02-15-2011, 02:58 PM
  3. having some trouble calling a function in the main program
    By CMakesMeSad :( in forum C Programming
    Replies: 19
    Last Post: 06-26-2009, 09:33 PM
  4. calling a function inside main()
    By mero24 in forum C++ Programming
    Replies: 6
    Last Post: 02-20-2005, 01:22 AM
  5. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM

Tags for this Thread