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 3 of 6.
Uma said:
1 decade ago
What is notation?
Gayathri said:
1 decade ago
Can you please write an example for all the notation which is present in the option?
Sujith shetty said:
1 decade ago
How structures are initialize? Explain.
Sree said:
1 decade ago
I think Memory is allocated only during function definition.
Ramesh.m said:
1 decade ago
What is kernighan and ritchie notation?
Snehal said:
1 decade ago
Explain pre-ANSI notation?
Madhuri said:
1 decade ago
I didn't find any difference between KR and ANSI.
Sathish said:
1 decade ago
When a memory is allocated in functions during the function call or function definition?
Bhanu said:
1 decade ago
Ex: KR notation:
---------------------
void display(__);
main()
{
display();
}
void display()
{
}
ASCII notation:
-------------------
void display(__)
{
}
main()
{
display();
Pre-ANCI Notation:
------------------
1)Main(net, err)
int *net;
double *err;
{
}
---------------------
void display(__);
main()
{
display();
}
void display()
{
}
ASCII notation:
-------------------
void display(__)
{
}
main()
{
display();
Pre-ANCI Notation:
------------------
1)Main(net, err)
int *net;
double *err;
{
}
Anjali pandey said:
1 decade ago
Please explain about this notation.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers