Define a function in c program, C/C++ Programming

Define a function in c program:

int f1()

{

static int x=10;

return x;

}

int f2()

{

int y=5;

return y;

}

extern int z;

void f()

 

 

{   int a=12;

    extern z=a;

 

}

 

Posted Date: 10/18/2012 6:47:59 AM | Location : United States







Related Discussions:- Define a function in c program, Assignment Help, Ask Question on Define a function in c program, Get Answer, Expert's Help, Define a function in c program Discussions

Write discussion on Define a function in c program
Your posts are moderated
Related Questions
Multiple Inheritance Multiple inheritance , as the name suggests , is  deriving a class from more than one class . The derived class inherits all the properties of all its base c

For your class to work properly, you'll need to define appropriate constructors, extract and insert operators, and of course arithmetic operators. (If you wanted to use it as a gen

#A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrom

sample of program that use in bubble sort using assignment operator in c++

Array of Objects A class is a template, which can contain data items as well as member functions to operate on the data items. Various objects of the class can also be declared

write a c program to solve exanple of lamis therom

Conversion from Basic to User-Defined variable Consider the following example. class Distance                  {                   public  :


Define Automatic storage classes - computer programming? The Variables declared within function bodies are automatic by default and automatic variables are declared inside a fu

my program does not run more than 9 iterations when ever i want to iterate more than 100 iterations. what is the reason and how to tackle?