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

13y ago

What else can I help you with?

Related Questions

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...);


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.


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(); }