Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7963901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:44:05+00:00 2026-06-04T05:44:05+00:00

Possible Duplicate: function parameter evaluation order Assuming that I have a function with 4

  • 0

Possible Duplicate:
function parameter evaluation order

Assuming that I have a function with 4 arguments. Which parameter is considered first for execution and why.

I was trying to understand the , operator’s significance used for the function prototype. As is the rule is it the last variable considered first?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:44:06+00:00Added an answer on June 4, 2026 at 5:44 am

    If we have a function with the following prototype:

    int function(int x, int y, int z);
    

    And we call it like so:

    function( something_a(), something_b(), something_c() );
    

    We have no ability to presume the order of execution of something_a, something_b and something_c.

    On the other hand, we can use the comma operator as follows:

    int main() {
        int x;
        something_a(), something_b();
        something_c();
    }
    

    In this case, we know that something_a will be called, then something_b, and finally something_c.

    In summary, the comma found in a function call, is not the comma operator.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Sizeof array passed as parameter Given the function below I understand that
Possible Duplicate: Order of evaluation in C++ function parameters In C++ is the order
Possible Duplicate: order of evaluation of function parameters Is it safe to use the
Possible Duplicate: How do you pass a function as a parameter in C? Is
Possible Duplicate: JavaScript Function Definition in ASP User Control Hi, I have a generic
Possible Duplicate: ROT-13 function in java? I have to shift all char from a
Possible Duplicate: c++ virtual function return type I have a simple but confusing question
Possible Duplicate: How does foreach work when looping through function results? If I have
Possible Duplicate: In a C function declaration, what does “…” as the last parameter
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.