menu
Qammunity
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
Write the definition of a function named newbie that receives no parameters and returns 1 the first time it is invoked (when it is a "newbie"), and that returns 0 every time that it is invoked after that.
asked
Oct 12, 2019
214k
views
0
votes
Write the definition of a function named newbie that receives no parameters and returns 1 the first time it is invoked (when it is a "newbie"), and that returns 0 every time that it is invoked after that.
Computers and Technology
college
Joland
asked
by
Joland
8.1k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
2
votes
int newbie(void){
static int a;
if(!a) {a=1;return 1;}
return 0;
}
Abid Iqbal
answered
Oct 18, 2019
by
Abid Iqbal
8.1k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 19, 2021
163k
views
Write the definition of a function named newbie that receives no parameters and returns true the first time it is invoked (when it is a "newbie"), and that returns false every time that it is invoked after
Hanism
asked
May 19, 2021
by
Hanism
7.6k
points
Computers and Technology
high-school
1
answer
0
votes
163k
views
asked
Oct 27, 2017
18.2k
views
Write the definition of a function named alternator that receives no parameters and returns true the first time it is invoked, returns false the next time it is invoked, then true , false and so on, alternating
Ants
asked
Oct 27, 2017
by
Ants
8.1k
points
Computers and Technology
high-school
1
answer
4
votes
18.2k
views
asked
May 24, 2020
51.3k
views
Write the definition of a function named counter that receives no parameters and returns 0 the first time it is invoked, returns 1 the next time it is invoked, then 2, 3 and so on.
JeremyDouglass
asked
May 24, 2020
by
JeremyDouglass
7.6k
points
Computers and Technology
high-school
1
answer
4
votes
51.3k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity