473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

rewrite the following for statement as an equivalent while statement

Expand|Select|Wrap|Line Numbers
  1. for (i+0;i<max_length;i++)
  2.  if (input_line[i]=='?') 
  3. quest_count++;
Sep 4 '19 #1
1 1301
dev7060
636 Expert 512MB
That's some basic thing. By looking at the syntax of both loops, equivalent code can be written.
Sep 4 '19 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: wenmang | last post by:
//a header file #define API_ABC //a CPP file class API_ABC Myclass; class Myclass{
0
by: Relaxin | last post by:
UPDATE BALANCE set TOTAL = TOTAL + ? WHERE ID = ? The "TOTAL = TOTAL + ?" fails with an error, but didn't fail using 7.2 (Peer Direct Windows port). If I change the statement to this: UPDATE...
2
by: Darta | last post by:
OK- I volunteer to be shot if this question is stupid... BUT, is there a way to, when you catch an exception in the catch{} handler, resume to the same line of code that generated an error while...
3
by: Derrick | last post by:
Is there a C# "Like" statement for comparing two strings? if(stringA Like "%diabe%mel%) do stuff... Thanks in advance! Derrick
2
by: alisbub | last post by:
Can someone please help me? Everytime I get something and go to check it it doesnt work. Consider: int a=1, b=2, c=3 a += b += c += 7 Write an equivilant expression that is fully...
1
by: PaulR | last post by:
Hi all, (DB2 LUW 8.2) I'm just trying to write a little widget to capture lock wait details (when they occur). i.e when a lock-wait occurs, simply record the 2 statements involved in the...
2
by: Jim Rockett | last post by:
The curveGR is a column of numbers The numbers in the statement are values to match against the curve to give the name of the mineral in this case dolomite. Dolomite is to be shown in a column...
1
by: hrstissiaopai | last post by:
I am trying to print the following pattern: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.