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 */
    }
1. KR Notation
2. ANSI Notation
1. Pre ANSI C Notation
2. KR Notation
1. ANSI Notation
2. KR Notation
1. ANSI Notation
2. Pre ANSI Notation
Answer: Option
Explanation:
KR Notation means Kernighan and Ritche Notation.
Discussion:
59 comments Page 2 of 6.

Tim said:   1 decade ago
Both C and D are correct, technically, since ANSI C did not exist prior to the Kernighan & Ritchie language definition.

Abhishek singh said:   1 decade ago
When we call main in other function then it show unexpected error occured why?

Please suggest me.

Sathish said:   1 decade ago
When a memory is allocated in functions during the function call or function definition?

Gayathri said:   1 decade ago
Can you please write an example for all the notation which is present in the option?

Vishnu said:   1 decade ago
Anybody Please explain what are these notation... thanks in advance.

Krish said:   1 decade ago
Is there any need of using function declaration in ANSI notation?

Kavita said:   1 decade ago
Plz explain what exactly is these notations are with examples?

Sree said:   1 decade ago
I think Memory is allocated only during function definition.

NITIN said:   7 years ago
Please, anyone, explain the notations with proper examples.

Sabari said:   7 years ago
Which one is correct? Please explain the correct answer.


Post your comments here:

Your comments will be displayed after verification.