answersLogoWhite

0


Best Answer

If you forget the semicolon, your program won't compile.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you print string without using semi column in printf statement in c programming?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Without printf statement semicolon print the statement?

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


How can we write our name in C programming language without using printf?

You can use fputs() instead of printf().


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")) {}


What purpose do braces serve in C programming?

grouping statements. eg: if (i==2) printf ("i=="); printf ("2"); and if (i==2) { printf ("i=="); printf ("2"); } do different things, if i<>2


What is the function and syntax of printf statement?

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


How do you program pyramid of letters using dev c plus programming?

#includeint main(){static int ROWS = 6;char ch;printf("Please enter an UPPERCASE letter:");scanf("%c",&ch);for( int row = 0; row < ROWS; ++row ){// Print padding.for( int column = 1; column < ROWS - row; ++column)printf(" ");// Print letters left of centre.for( int letter = row; letter >= 1; --letter)printf("%c", ch);// Print centre letter.printf("%c", ch);// print letters right of centre.for( int letter = row; letter >= 1; --letter)printf("%c", ch);printf("\n");}return( 0 );}


C programming diamond shape for loops Problem and output sample is in the picture?

#include&lt;stdio.h&gt; main() { int i; for(i=1;i&lt;=1;i++) { printf("*",i); } printf("\n"); for(i=1;i&lt;=3;i++) { printf("*",i); } printf("\n"); for(i=1;i&lt;=5;i++) { printf("*",i); } printf("\n"); for(i=1;i&lt;=3;i++) { printf("*",i); } printf("\n"); for(i=1;i&lt;=1;i++) { printf("*",i); } }


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.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


What is library function in C programming?

printf, fgets, strlen, malloc etc


How do you print 0001 in C programming?

its quite simple using printf function