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
Program is to read the characters from keyboard: Program is to read the characters from keyboard one by one stored in different files as upper constants, lower constants, othe

aj is a newbie to the programming and while learning the programming language he came to know the following rules: - Each program must start with ''{'' and end with ''}''.

Illustrate the Function Definition? The C code that explains what a function does is called the function definition. A function definition has the following form Type fun

This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher, Write a program that: a. Asks

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

#write a multilevel c++ program to take marks of 3 subjects and calculate percentage and display it

C Program for REMOVING CHAR WHICH U WANT void main() {           int i,j;           char a[100],r;           clrscr();           for(i=0;i

I need help in the C++ programming assignment. I can send the files the assignment is times 3hrs.

good night i have an assignment that i really need help with. i have to create a struct file with tag name book to have members int book_id char isbn[255]

Write a C program to compute the value of a sine wave from 0 to 2P with an increment of 0.1 radians.   #include stdio.h #include math.h #define pi 3.1415927 void main() {   c