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

  • Home
  • SEARCH
  • 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 8153177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:55:49+00:00 2026-06-06T15:55:49+00:00

Am I missing something completely. How can we simply put the value in definition

  • 0

Am I missing something completely. How can we simply put the value in definition line of the function. If so, whats the point of passing values if we have predefined it.
Something like this :

node( unsigned char c = 0, int i = 0)

Strange thing is this code runs, and executes properly. (Visual Studio 2010).

Is it something related to const function? But then there is no const mentioned.

Or something like this :

void traverse(string code="") const

But the earlier definition was not const’d.

  • 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-06T15:55:52+00:00Added an answer on June 6, 2026 at 3:55 pm

    node( unsigned char c = 0, int i = 0)

    These are default arguments. This means that you can write node() in some body of code instead of node(0,0), node('x') instead of node('x',0). There’s nothing to stop you from using node('x', 2). In this case node will receive 'x' and 2 as the values for c and i.

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

Sidebar

Related Questions

Am I thinking about this incorrectly?? Or missing something completely obvious? I can best
Probably missing something completely obvious here, but here goes. I'm starting out with Spring
I feel like I must be missing something completely obvious, but I don't see
I am really missing something with anonymous types, because I can't figure out what
Maybe I'm missing something obvious, but I how can I view the expression tree
I am completely lost. I think I am definitely missing something fundamental here. Everybody
i can't seem to get jquery's .load() function to work. must be something simple
either I'm missing something or the ( patterns & practices Composite Application Guidance for
I'm probably missing something obvious here but here's what I'm trying to do. From
I am missing something embarrassingly basic here in my Merge Sort implementation: # include

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.