IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C# Programming Java Programming
Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C Programming - Functions - Discussion

@ : Home > C Programming > Functions > General Questions - Discussion

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 */
    }

[A]. 1. KR Notation
2. ANSI Notation
[B]. 1. Pre ANSI C Notation
2. KR Notation
[C]. 1. ANSI Notation
2. KR Notation
[D]. 1. ANSI Notation
2. Pre ANSI Notation

Answer: Option A

Explanation:

KR Notation means Kernighan and Ritche Notation.


Vishnu said: (Tue, Nov 2, 2010 12:05:19 AM)    
 
Anybody Please explain what are these notation... thanks in advance.

Tim said: (Fri, Dec 3, 2010 10:00:25 PM)    
 
Both C and D are correct, technically, since ANSI C did not exist prior to the Kernighan & Ritchie language definition.

Ramya said: (Tue, Dec 7, 2010 01:08:42 AM)    
 
What is kernighan and ritche notation?

Jamuna said: (Wed, Dec 8, 2010 02:04:08 AM)    
 
Can anyone explain these 2 notations?

Smile Vairam said: (Mon, Dec 13, 2010 06:23:47 AM)    
 
What is KR notation. ? Can you anyone explain it. ?

Sai said: (Mon, Dec 13, 2010 12:20:55 PM)    
 
Please. Tell us abt KR notation.

N.Muthu Kumar said: (Mon, Dec 20, 2010 02:55:52 AM)    
 
There are many standard notations there like Ansi, Pre-Ansi, KR notations. These are nothing but, the specification or representations of methods in a standard format developed at MIT's. That's it. C compiler supports both of these.

Inam said: (Mon, Dec 27, 2010 05:19:14 AM)    
 
Please some one explain it properly.

Arun said: (Mon, Jan 24, 2011 12:15:03 AM)    
 
Any one can explin it in proper manner?

Sandy said: (Tue, Feb 8, 2011 07:15:26 AM)    
 
Can you explain in detail. ?

Tanmay said: (Thu, Mar 10, 2011 12:09:05 PM)    
 
What is KR notation?

Manish Singh said: (Wed, Apr 20, 2011 03:56:45 AM)    
 
thanks..N.Muthu Kumar...to explane about these notations

Riya said: (Fri, Apr 29, 2011 11:10:39 PM)    
 
Can anyone give me the example of Pre ANSI C notation?

Kavita said: (Mon, May 30, 2011 11:32:31 AM)    
 
Plz explain what exactly is these notations are with examples?

Raja said: (Sun, Jun 19, 2011 01:35:24 AM)    
 
Thanks muthukumar.

Mahender said: (Thu, Aug 4, 2011 06:30:42 PM)    
 
In KR notation first we need to give prototype declaration then function call then comes function definition where as in ASCII notation 1st we need to define the the function defination and then function call.

Ex: KR notation:
---------------------
void display(__);
main()
{
display();
}
void display()
{
}

ASCII notation:
-------------------
void display(__)
{
}
main()
{
display();
}

Ram said: (Fri, Sep 2, 2011 03:43:13 PM)    
 
@Mahender: good explanation. Thank you.

Pravin said: (Tue, Sep 6, 2011 03:17:39 PM)    
 
What is the use of these notations?

Sudheer said: (Wed, Sep 14, 2011 10:51:51 AM)    
 
Who is KR?

Swetha said: (Thu, Sep 22, 2011 05:37:40 PM)    
 
Please explain it clearly!

Vijeta said: (Fri, Sep 23, 2011 08:28:35 PM)    
 
Thanks muthu and mahendra :).

Abhishek Singh said: (Wed, Sep 28, 2011 09:46:08 PM)    
 
When we call main in other function then it show unexpected error occured why?

Please suggest me.

Write your comments here:
Name *:     Email:


© 2008-2011 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Advertise     Contact us: info@indiabix.com     Follow us on twitter!