New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why does (I==1; I<=3; I++) printf ("hello") print hello four times instead of three times?
codigo
1 Vote
8 Answers
22nd Jan 2020, 4:07 PM
ASIYA SHAIKH
If i directly compare two strings on printf it produce only null value..why.?
c
2 Votes
5 Answers
22nd Aug 2018, 4:32 AM
M.MANIVANNAN
¿cout & cin son iguales a printf & scanf?
c++
variables
1 Vote
1 Answer
11th Mar 2017, 12:24 PM
Angel Rodriguez
How printf(6+"hello world"); will work??
printf
1 Vote
2 Answers
12th Mar 2019, 2:43 AM
Patel Jay
#include <stdio.h> int main() { int n; for(n=7;n!=0;n--) { printf ("n = %d",n--);} getchar(); return 0; }
c
loops
-2 Votes
4 Answers
11th Jan 2019, 3:05 PM
Devasheesh
#include <stdio.h> int main() { int a=1; printf ("%d%d%d",a,++a,a++); return 0; }
c
logic
0 Votes
3 Answers
6th Apr 2022, 4:42 PM
Janvi Desai
Es lo mismo usar printf ("blabla"); que usar cout <<"blabla"; ???
c++
1 Vote
2 Answers
13th Jul 2018, 4:26 PM
Josue Canizal
What is the difference between sprintf , sscanf and printf , scanf
basics
c
c++
practice
1 Vote
3 Answers
31st Mar 2019, 4:44 PM
Shikher Jaitly
Can we use printf and scanf instead of cout and cin?
printf
2 Votes
2 Answers
19th Sep 2017, 1:47 PM
yagnesh maheria
How passing the address of a format specifier work in a printf statement?
c
pointers
0 Votes
7 Answers
17th Dec 2019, 6:34 PM
Hima
Does Printf Automatically add \n when it prints strings(%s) C LANGUAGE
c
help
question
0 Votes
2 Answers
2nd Feb 2020, 8:47 PM
mert aydın
Why z = 5?
printf
0 Votes
3 Answers
20th Mar 2021, 7:09 AM
Alesh Boldrew
How can i printf 4.42 instead of 4.43, like 4.4289767->4.42 not 4.43
1
0 Votes
3 Answers
10th Dec 2020, 9:27 AM
bá dạo
What are the differences between printf and cout, similarly scanf and cin?and why?
c
cpp
0 Votes
5 Answers
14th Jul 2020, 4:23 PM
Harsh Kant
If printf statement is assigned to a variable. After the excecution of that printf statement what will be the value of variable
c
0 Votes
1 Answer
12th May 2020, 4:13 PM
Reshma Sai
include <stdio.h> int main() { char i=0; switch(i) { case '0': printf ("c"); break;
hh
0 Votes
9 Answers
7th Jan 2021, 8:50 AM
Ankit Kumar
Please give the difference between printf and sprintf in c language
c++
2 Votes
1 Answer
5th Nov 2016, 7:11 AM
Saksham Jain
why is printf executed later even tho it is used earlier here?
c
ide
printf
1 Vote
2 Answers
17th Dec 2021, 1:02 PM
Ishaan Oberoi
Why can't we use printf and scanf instead of using console.read write..
texting
0 Votes
3 Answers
4th Jul 2019, 9:57 AM
T Bharath kumar
How can we print a sentence without using the predefined printf statement in C?
c
c++
functions
predefined
printf
0 Votes
6 Answers
14th Jun 2020, 2:16 AM
Krishna Kumar
include <stdio.h> int main() { int b=7,a; a=b++ + ++b+b++ ; printf ("%d\n",a); return 0; }
@sololearn
2 Votes
7 Answers
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
How to print "" quote in c language using printf function
c
language
programming
0 Votes
1 Answer
3rd Jul 2022, 8:32 AM
Nitesh Nagar
Cant we use printf or cout to output? like c++?
c#
c++
0 Votes
2 Answers
30th Jul 2016, 1:43 PM
박동규
Different working of cout and printf while both do the same work
c
c++
1 Vote
4 Answers
25th Aug 2017, 2:54 AM
Gunjan yadav
i've finished html, and i've started c tutorial. im finding c tutorial difficult. please what should be the next course to study
printf
3 Votes
2 Answers
7th May 2020, 1:36 PM
Spider
Can anyone give a coding of char using printf and scanf using character i.e char
c
1 Vote
9 Answers
3rd Aug 2019, 10:31 AM
Naresh
اخوان مادا تعني cout ما دورها وما فرق لينها و بين printf
c++
0 Votes
4 Answers
2nd Apr 2017, 7:02 AM
EZAIER Yassine
#include <stdio.h> int main() { int c=50; for(;c;) c--; printf ("c=%d",c); return 0; }
=0
c
why
0 Votes
4 Answers
27th Dec 2020, 9:43 AM
Ankit Kumar
#include <stdio.h> int main() { float a=0.7; if(a>0.7) printf("condition true"); else printf ("condition false");}
c
4 Votes
2 Answers
5th Nov 2019, 5:13 PM
Amar kumar
Why 2nd printf values unknown number..why not from arrays?can anyone plz clear me the topic
array
1 Vote
7 Answers
26th Jul 2020, 4:43 PM
Muhtasinul
Is it not possible to do explicit convertion in printf with float
explicit
float
int
type-conversion
0 Votes
3 Answers
20th Oct 2018, 7:29 AM
Jishnu
How does this work
c
printf
0 Votes
7 Answers
9th Jun 2021, 5:29 AM
Vatsav
int a = 1 ; printf ( "%d %d %d", a, ++a, a++ ) ;
c
code
question
quizz
solve
2 Votes
5 Answers
5th Nov 2018, 5:48 AM
Shubham rathore
How can I use input?
printf
0 Votes
2 Answers
3rd May 2020, 5:19 PM
Freelancer Mahmud Al Hasan
Can I use printf ans scanf in the place of cout and cin ..?
c
c++
variables
2 Votes
6 Answers
5th Jul 2016, 5:26 PM
Amine Demagh
What is the limit of for loop with printf statement in c++?
c++
2 Votes
2 Answers
13th Aug 2017, 2:01 PM
sachin gupta
Help me in can't do sum of diagonal elements of a matrix
printf
1 Vote
1 Answer
10th May 2022, 5:27 PM
Ravi Pandey
C language how concatenate 2 strings in another string to printf out?
c
char
concatenate
input
printf
programming
scanf
script
strings
1 Vote
1 Answer
5th Oct 2017, 4:16 PM
dimitriDV
Hi guys! If constant 0x13 and 'c' are char type what will be printf format specifier for each of following constants
c++
3 Votes
11 Answers
20th Oct 2018, 1:30 PM
Muhlisa
En cpp si añades la liberia stdio.h ,puedes usar printf y scanf?
c
c++
cpp
printf
scanf
1 Vote
2 Answers
14th Mar 2018, 8:59 PM
Fernando
how does the printf work? how to adjust the positions of the output?
java
2 Votes
3 Answers
3rd Jul 2016, 5:09 PM
Jeremiah Rousseau
How to line break if double printf statement, there is no slash
cldduydfyy
0 Votes
2 Answers
13th Dec 2020, 7:08 AM
knowledge point
how can I format dynamically
printf
python
2 Votes
8 Answers
8th Jul 2020, 11:41 AM
Oma Falk
I NEED FAST HELP
c
coding
cprogramming
help
printf
0 Votes
11 Answers
21st Apr 2021, 9:57 PM
othneillo
Is there any way to use printf & scanf in one single line in C?
c
printf
scanf
0 Votes
3 Answers
24th Feb 2022, 3:06 AM
dead falcon
If we use %d in printf to print a float variable than what it print in c ?
answer?
2 Votes
8 Answers
10th Feb 2021, 6:57 PM
Ayush Gupta
I used printf and scanf in C. What are their replacements in C++?
c++
0 Votes
3 Answers
7th Jul 2017, 1:17 PM
Sanam Limbu
Can I use printf for hello world by including #include <stdio.h> also?
c++
0 Votes
2 Answers
24th Dec 2016, 3:59 AM
Ka Yip
I did not understand the purpose of width in "%[-][width].[precision]conversion character " (used in printf statements)
input
output
0 Votes
4 Answers
7th Oct 2019, 2:47 PM
Sk. Ahmed Razha Khan
[SOLVED] Sololearn problem in C. No numerals
2darray
c
printf
6 Votes
10 Answers
13th Oct 2020, 8:33 PM
Davide
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
3
4
...
6
Next >
Hot today
Help me learn how to use .value in Javascript please!
1 Votes
How to get Kotlin certificate here
2 Votes
String
0 Votes
Array of Object to Object using reduce()
0 Votes
I don't understand why g1, g2 & g3 values is not aligned with Group 1, Group 2 and Group 3 which is the expected output..
0 Votes
The output is not matching the code.
0 Votes
Can't complete lessons on browser
3 Votes
How are you spost to do animashon
0 Votes
Help me please!!!
1 Votes
How to use swig generated python file
0 Votes