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 8214293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:24:44+00:00 2026-06-07T11:24:44+00:00

I am new to C and im trying to work with Global variables i

  • 0

I am new to C and im trying to work with Global variables i ran this program and all get as output is “Hey there” Which is the first part of the program. The second part doesn’t get displayed. Here’s the code.

char count[20]="Hey there";
char dig[7]="pooop"; 

main()
{
    puts(count);

    return(0);
}
hey()
{
       printf(" i %s you", dig);

    return(0);
}
  • 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-07T11:24:46+00:00Added an answer on June 7, 2026 at 11:24 am

    You need to call the second function hey() before you can get its output.

    E.g., in main()

    {
       puts(count);
       hey();
       return 0;
    }
    

    where exactly you put the call to hey() in main() is up to you (it needs to be before the return statement though).

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

Sidebar

Related Questions

I'm getting all in a twist trying to get this to work. New to
I am new to using RavenDB and trying to get indexes to work in
I am relatively new to jQuery, I am trying to work around this code
I have been trying everything I can to get this script to work and
Fairly new to Objective C and trying to work within Storyboards given it's the
I work for a company and am trying to make a new demo page.
I am trying to develop an extension that will work with Awesome New Tab
I'm new to Maven and I'm trying to convert a few projects to work
Ok, this may have been answered, but I'm new and trying to learn, so
Trying to work out this whole web part personalisation, and trying to implement it

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.