answersLogoWhite
Software and Applications (non-game)
Computer Programming
C Programming
The Difference Between

What is the difference between actual and formal arguments used in functions in C language?


Top Answer
User Avatar
Wiki User
Answered 2009-01-25 19:50:22

The arguments passed to the functions while the function is called is known as the actual arguments, whereas the arguments declared in the function header is called as formal arguments.

Ex. Suppose sum() is a function.

int sum(int x, int y) /*Here x and y are called formal arguments*/

{...}

void main()

{

int ans;

....

ans = sum(3,5); /*Here the arguments 3 and 5 are called actual arguments*/

...

getch();

}

234
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Related Questions


Difference between managerial roles,functions and activities


What is the difference between the population and sample regression functions? Is this a distinction without difference?


The difference between language and culture is language is a way to communicate, and culture is the beliefs, customs, and practices of a society.



There is no difference between procedural programing language & structure programing language



The difference between spoken language and written language is that one is spoke through your mouth and the other is written on paper. the spoken language is composed of symbols



wht is the basic difference between English language with urdu language


They are synonyms. They mean the same thing. The arguments of a function are its parameters and vice versa.


I think you mean language construct... Anyway, a function usually takes one or more arguments as comma separated values or variables. echo and print don't <?php $email = 'user@example.com'; $domain = strstr($email, '@'); echo $domain; // prints @example.com ?> Here the strstr function takes a variable string and a constant string as an argument. echo simply displays the contents of the resulting variable. There are a couple functions that don't require arguments, like die() & exit()


Latent functions are unintended, while manifest functions are intended.


Speaking is a verb. Language is a noun.


There is no difference they perform the same functions.


what is the difference between speech,language and communication??


difference between fourth generation language and conventional programming language


A function is a type of procedure which returns a value. A method is the name given to functions and/or subroutines in certain programming languages.


'scripting language' is the written form and just 'language' is the spoken form.


The difference between language arts and math is that language arts is where you learn writing and math is where you learn ........well......math. For example, 2 + 3 =5.


There is no difference in the language between Normandy and the Parisian area.


The difference between the two are that one has hispanic babies and the other is a fat cow.


Library functions are predefined functions in the User space where System calls are predefined functions in the Kernel space.


i don't know what is the difference between msgbox and inputbox function because i want to know the difference between them but i didn't got answer what is this foolishness stupid '


There is very little difference, functionally, between assembly language and machine level language. Each assembly language statement corresponds to one machine instruction. The difference is in readability (who wants to read and write in hex code?) and in ease of address computation.


A language is the one which provides Protocols to develop a technology...



Copyright ยฉ 2021 Multiply Media, LLC. All Rights Reserved. The material on this site can not be reproduced, distributed, transmitted, cached or otherwise used, except with prior written permission of Multiply.