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
An anagram is a type of word play, the result of rearranging the letters of a word or phrase to produce a new word or phrase. For example the anagram of tea is tea, tae, eat, eta,

What does it mean to declare a 1.      member function as a virtual A: (a) C++ virtual function is member function of any class, whose functionality may be over- ridden in

I need Profile and optimize a C++ library for speed Project Description: Optimize and profile an existing C++ library for speed. This library uses OpenMP and OpenCV and C+

Explain the Macros? Preprocessor' is a translation stage that is applied to your source code before the compiler proper gets its hands on it. Usually the preprocessor performs

C program to add, average and deviation of numbers: void main() {                 int sum=0,a[10],i;                 float avg=0,dev,vari=0,var;                 pri

Readers Writers with Processes and Threads Write two programs implementing ``reader pritority readers-writers synchronization'''' on files. One program will use processes, created

Given an integer n and a permutation of numbers 1, 2 ... , n-1, n write a program to print the permutation that lexicographically precedes the given input permutation. If the given

what is virtual datatype

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b