C Programming - Functions - Discussion
Discussion Forum : Functions - General Questions (Q.No. 2)
2.
What is the notation for following functions?
1. int f(int a, float b)
{
/* Some code */
}
2. int f(a, b)
int a; float b;
{
/* Some code */
}
Answer: Option
Explanation:
KR Notation means Kernighan and Ritche Notation.
Discussion:
59 comments Page 6 of 6.
Vijeta said:
1 decade ago
Thanks muthu and mahendra :).
Abhishek singh said:
1 decade ago
When we call main in other function then it show unexpected error occured why?
Please suggest me.
Please suggest me.
Ali Umar said:
1 decade ago
Thanks Mahendre
Sunita said:
1 decade ago
What is the KR Notation please tell me ?
Sneha said:
1 decade ago
What is Pre ANSI C Notation please explain with syntax ?
Krish said:
1 decade ago
Is there any need of using function declaration in ANSI notation?
Ravikanth iiit-nuzvid said:
1 decade ago
What is the use of these notations?
Vinay said:
1 decade ago
Thanks for nice explaination to Mahender.
K.Chaitanya said:
1 decade ago
ANSI notation means that must be initialized in biteen ().Like fun(int a,float b).But,
In the times of Dennis Ritche ,he initialized out side of ().Like
fun();
int a;float b;
In the times of Dennis Ritche ,he initialized out side of ().Like
fun();
int a;float b;
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers