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
Many human diseases could be controlled by the knowledge of the gene’s structure and pattern. The human gene could be represented by four nucleotides. Each nucleotide is represente

Default Arguments A default argument is a value that is automatically assigned to a formal variable, if the actual argument from the function call is omitted. e.g. void

Write a Program that illustrate union declaration? A C program encloses the following union declaration: union id { char color[12]; int size; } shirt, blouse; At this

Task Your task is to write a program, words, that reports information about the number of words read from its standard input. For example, if the file qbf.txtcontains the text th

Program which can check the given string is super ascii or not

write a programme that computes the price of shares and options. do the options in one-period binomial model.

Program is to store first n natural no in a file: Write a program to  store first n natural no in a file void main()     {     fstream file;     file.open("studen


Develop Diablo 2 LOD 1.13d Dupe Method for Closed Battle.net This hack is for diablo 2 lord of destruction The program must work on all realms, all cores, all ladders (4x rea

The voltage at the terminals of a battery is 52V when no load is linked and 48.8V when a load taking 80A is connected. Find the internal resistance of the battery. What wou