answersLogoWhite

0

In pseudo-code:

while ( not(end of string) and letter(string at position X) is not 'P' ){

add(array, newposition) = letter(string at position X);

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Does printf() statement can generate only one line of output?

No, the printf() statement in C can generate multiple lines of output. You can include newline characters (\n) within the string to create line breaks, allowing for formatted output across multiple lines. Additionally, you can call printf() multiple times to print different lines.


Without printf statement semicolon print the statement?

int main (void) { if(printf("Print whatever you want")) { } }


What is the function and syntax of printf statement?

it's not a statement, it's a function: len= printf (format, ...more-parameters...);


Calculate length of string using printf statement only?

printf does return the length: size_t len = printf ("%s", str);


What is the type of printf statement in C?

It is a function.


Can you use printf as a return value?

No, it is a function. But printf does return a value: the number of characters it has written.


Can anyone give a logic in c plus plus to print something on screen using printf statement but without semicolon used after printf statement?

try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}


In which direction does the printf statement works?

from main-memory to standard output.


Which condition in if loop lets us to known that both printf statements after if and else will printin c?

I don't really get your point, it is unlikely that both then-statement and else-statement should be executed. I daresay it is impossible.Try me:printf ("before if\n");if (1) printf ("condition is true (non zero)\n");else printf ("condition is false (zero)\n");printf ("after if\n");


Greatest no among 3 number using nested if statement?

if (a > b && a > c) printf("%d\n", a); else if (b > c) printf("%d\n", b); else printf("%d\n", c);


Wap to print 'hellow' in c?

Answerwell if it is about the include statement only then your answer goes simple. extern "C"{int printf(const char *format,..);}int main(){printf("Hello world");}coz all the include statement does is copy the requested file at the asked location.


What program in Turbo C that determines whether the input is vowel or consonant letter?

#include<stdio.h> main() { char ch; clrscr(); gotoxy(5,3); printf("*Identification of Consonant and Vowel letter*"); gotoxy(5,5); printf("*Please input a letter from A-Z in order to determine"); gotoxy(5,6); printf("if it is a CONSONANT or a VOWEL*"); gotoxy(5,8); printf("Enter a Letter: "); scanf("%c",&ch); gotoxy(5,10); printf("Letter %c is a ",ch); switch(ch) { case 'A': case 'a': case 'E': case 'e': case 'I': case 'i': case 'O': case 'o': case 'U': case 'u': printf("VOWEL."); break; default: gotoxy(5,10); printf("Letter %c is a CONSONANT.",ch); } gotoxy(5,15); printf("Thanks you for trying this!"); getch(); }

Trending Questions
What do you call the two parts of the lift that goes down? Have a voltage difference across the two holes of an electrical outlet and a generator at a power plant provides this voltage difference? Which angle is not to be changed while drill grinding? A program to explain the Exception Handling mechanisms in Java using the keywords try catch and finally? How do you lower the water level in my boilers sight tube its too high im not getting enough heat to my second floor? How does the firing angle affect the power output? Are temperature coefficients alwaws constant? Design a 5-bit camparator using a single 7485 and one gate? Is a lawn sprinkler a Compound Machine? What is the strength of beam of price creek? What are air bricks? The filament of an electric lamp draws a current of 0.4 ampere which lights for 3 hours calculate the amount of charge that flows through the circuit? Why the generating stations produce 11kv voltage and it step up to 33kv during transmission.. why we should not use 230volts to generated and can step up to 11kv.. why? What is equivalant bs grade carbon steel for sa 516 gr 70 carbon steel? Cell phones washing machines and door knobs are examples of which human accomplishment? What is receiving gauge? Difference between lex and yacc? Why is it desirable to save an integer answer in a text field as a string? Describe the expression frequency when the source of sound is in motion but the observer is at rest? How many diodes can be used in center tap type rectifiers?