answersLogoWhite

0

parameter passing :

the value of the variable is passed to the called function,but the passed value cant be changed by the function.

ex:

int main()

{

int a,b;

a=5;

foot(a);

printf("%d",a);

}

void foot(int x)

{

x=7;

}

here the value of a ie.5 is passed to the function foot(),and the value 5 is printed since the value of tat variable cant be changed ...

here the address of the variable is send to the function,the function can change its value.

ex:

int main() {

int a,b;

a=5;

b=7;

foot(&a,&b);

printf("%d%d",a,b);

}

void foot(int *x,int *y)

{

*x=6;

*y=8;

}

here the address of a is assigned to x and address of b to y,so by using this more values can be referenced..here &a means it is pointing to an address,*x means it is an indirection pointer tat points indirectly to the or tat references indirectly the value of a.

hence x references a and y references b.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Structures of web addresses?

A URL consists of ten parts: the scheme, subdomain, top-level domain, second-level domain, subdirectory, parameter, port, path, query, and fragment.


Does the poem Trees have the rhyme scheme of aa bb cc?

As reference, see the question: What is an Aa bb cc poem


What is the rhyme scheme of the poems?

The rhyme scheme of a poem refers to the pattern in which the lines rhyme with each other. It is usually denoted using letters to represent the different rhyme sounds. For example, a rhyme scheme of ABAB means that every other line rhymes with each other.


Are all blueprints blue?

No, not all blueprints are blue. Blueprints are usually white with blue lines and text to differentiate the drawing from the background. However, there are also black and white blueprints and digital blueprints that may not have a blue color scheme.


What has the author Emily J Kogos written?

Emily J. Kogos has written: 'Academic book-selling in Kenya with special reference to the role of the English Language Book Scheme (ELBS)'


Are the lines in a sonnet are written with twice as many stressed syllables?

No, the lines in a sonnet typically have the same number of stressed syllables as other forms of poetry, such as iambic pentameter. The rhyme scheme and structure of a sonnet are what differentiate it from other forms of poetry.


WHAT ARE THE CHARACTERISTICS OF OF LIBRARY SCHEME?

The characteristics of a library scheme typically include organization, accessibility, and resource diversity. A well-structured library scheme ensures that materials are categorized systematically for easy retrieval. It emphasizes user-friendly access, allowing patrons to find and utilize resources efficiently. Additionally, it offers a diverse range of materials, including books, digital media, and reference services, to meet the varied needs of its users.


What is antyodaya scheme?

aim of antyodya scheme


How do you use the word scheme in a sentence?

That scheme is really great. Do not invest in fraud Schemes.


What has the author Peter Duncan Walsh written?

Peter Duncan Walsh has written: 'The practical analysis and operation of multi-source water supply systems with particular reference to the Lancashire Conjunctive Use Scheme'


What is a double complementary color scheme?

this is a rectangular(tetradic)color scheme,also a square color scheme


When rhyming is organized into patterns and can be labeled aaba it is called?

Rhyme Scheme