₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,498 members, 8,422,334 topics. Date: Monday, 08 June 2026 at 07:09 AM

Toggle theme

Why Is This Simple Code In C Not Running Till The End? - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingWhy Is This Simple Code In C Not Running Till The End? (675 Views)

1 Reply (Go Down)

Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op):
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk

Re: Why Is This Simple Code In C Not Running Till The End? by codeigniter(m): 12:16pm On Sep 04, 2021
AntiSimp:
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk
Why isn't d no_oftranz on line 18 a reference as well with &.

Next time

Post full codes
Re: Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op): 12:23pm On Sep 04, 2021
codeigniter:
Why isn't d no_oftranz on line 18 a reference as well with &.

Next time

Post full codes
Its the full code i wrote that I posted, from the assignment instruction.

Geez! Thank you very much...how did my eyes omit that "&"..dint even realise anything was missing since last night.
.
Thank you. I just added it now and every line was executed...chai ..I need glass
Re: Why Is This Simple Code In C Not Running Till The End? by codeigniter(m): 12:44pm On Sep 04, 2021
AntiSimp:
Its the full code i wrote that I posted, from the assignment instruction.

Geez! Thank you very much...how did my eyes omit that "&"..dint even realise anything was missing since last night.
.
Thank you. I just added it now and every line was executed...chai ..I need glass
No one is immune to mistake, especially as the source code grows. You are welcome!
Re: Why Is This Simple Code In C Not Running Till The End? by parkervero(m):
AntiSimp:
I recently started learning how to code using C
.
This code is an assignment for me,
When I run the code, it executes but stops at line 18..
.
The printf function from line 23 downward does not execute, which are the main solution..
.
And I don't see any issue anywhere. I've been on it since last night and it's bothering me.
.
Abeg someone should help me out and tell me why only the first 18lines will execute.
You can input any value for the variable asked to run the code.
Thansk
...
Re: Why Is This Simple Code In C Not Running Till The End? by sirwilson(m): 5:47am On Sep 08, 2021
Good morning, pls what is the name of the app u are using?
Re: Why Is This Simple Code In C Not Running Till The End? by AntiSimp(op): 6:52pm On Sep 09, 2021
sirwilson:
Good morning, pls what is the name of the app u are using?
Vscode...
1 Reply

An INEC Voting Console Program Written In C LanguagePlease Help Me Solve This Problem In C++Please,Help Explain This Code In C234

Kindly Review This Marketplace And ForumTransitioning To Web3 ProgrammingSoftware Engineer Needed