Can you find the value of variable z if the given program segment - ProProfs Discuss
Advertisement

Can you find the value of variable z if the given program segment ends; int z; for(z=0; z<50; z++) { }?

Asked by Andreeahrab, Last updated: Apr 09, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

E. Austin

E. Austin

E. Austin
E. Austin

Answered Jun 20, 2019

The correct answer to this question is 50. This type of question would be found on a test dealing with computer programming, which is a process. This process involves the design and building of a computer program. The computer program that is built is to accomplish a computer task.

There are a total of 698 programming languages. To execute computer programming, one must be a computer programmer. This field has increased since the first game was created in 1961. The primary language was developed in the 1940s by Konrad Zuse. However, it wasn't used until 1998.

upvote downvote
Reply 

Fahad_mustufa

Fahad_mustufa

Fahad_mustufa
Fahad_mustufa

Answered May 01, 2017

Ans is 49
Because The Loop z<50 is 49<50 They can run and print this but 50<50 is not right they will not run
upvote downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Feb 19, 2017

50
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.