Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
We use %d for integer and %f for float. What do we ue for double?
code
double
float
integer
java
question
4 Votes
2 Answers
3rd Nov 2021, 6:53 AM
Geraldo Lici
if i change %f to %d a new number appear i dont know why?
c
data-types
0 Votes
3 Answers
1st Aug 2019, 6:24 PM
Kuleep Bhogal
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
What is mean by %1d in C language? Can we use only %d instead of %1d?
c
0 Votes
2 Answers
21st Feb 2020, 9:11 AM
Tarun Gehlot
What is the deference between using format() function and using these %s , %d ...
format()#functions#%d
python#strings
1 Vote
2 Answers
12th May 2021, 8:19 PM
Safou Abderrahim
#include<stdio.h> int main(){ int a,b,c; printf(" three numbers: "); scanf("%d %d %d",&a,&b,&c); if(a>b && a>c){ printf("
c
help
need
0 Votes
3 Answers
7th Jul 2017, 3:38 PM
Noushin tabassum
#include <stdio.h> #define prod(i,j) i*j int main() { int x=3,y=4; printf(" %d \n",prod(x+1,y)); } output :7
c
define
preprocessor
0 Votes
2 Answers
21st Nov 2019, 6:03 PM
mohamed Issati
Printf("the answer is %d",sum); does not work on devc++ on my PC what can i do to fix it please
%d
csourcecode
printf
1 Vote
4 Answers
26th Apr 2020, 8:05 PM
Nchinda Boris
Can someone help me to understand this code ↓ ?
%d
c
char
printf
unsigned
0 Votes
11 Answers
21st Feb 2022, 1:51 AM
Mik
When i use %d in place of %s I see this result, can you explain the number in place of string
...
1 Vote
3 Answers
8th Jun 2018, 2:36 PM
Tarun Mathur
Could you Explain the output how we get it and what is the meaning of %d %f %c why do we use them ..
c
1 Vote
6 Answers
18th Aug 2019, 7:52 PM
Safaa Alnabhan
whats the problem?
%d
forloop
formatting
java
0 Votes
5 Answers
5th Jun 2020, 10:57 AM
Yahel
What's wrong with this code?
%d
code
If
0 Votes
2 Answers
9th Jul 2017, 3:06 PM
Captain George
c programming
%d
%i
c
-1 Vote
1 Answer
7th Dec 2017, 1:09 PM
jefferson anjos
Void main() { Int x = 10; Int *y = (&x); Int ***z = (&y); Printf("%d %d %d", **z, *y, x); }
c#
-2 Votes
4 Answers
19th Mar 2017, 6:14 AM
lalith narayan
explain in simple words the use of %2d, *, %5s in scanf("%2d %d %*f %5s", &x, &y, text), where text is text[20] ?
input
output
scanf
0 Votes
2 Answers
1st Oct 2019, 4:56 PM
Sk. Ahmed Razha Khan
guys can anyone tell me all the conversion types in C for example int as %d like tht how many r thr?
c++
0 Votes
2 Answers
5th Aug 2016, 4:26 PM
Suhail Pappu
why this code in c , outputs this
%
%d
%o
%x
c
doubt
program
9 Votes
2 Answers
25th Jun 2019, 10:23 AM
Sujithra
Is it necessary to write "%d", "%c" in printf(_____)?
%d
c
new
printf
0 Votes
1 Answer
21st Jun 2020, 11:00 AM
Ashik Ahmed
I want to pass an average to a function. When I use in the main printf with %d I get the average but if I use %f I got 0.Why? Tk
advise
average
c
0 Votes
4 Answers
10th Jan 2019, 6:32 PM
Maria
What Are Format Specifiers and what is the importance of it?
%c
%d
%f
%ld
c
c++
format
java
specifier
syntax
1 Vote
4 Answers
11th Aug 2017, 12:10 AM
Ishu Maurya
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
2
Next >
Hot today
Sticky position
3 Votes
Help please?
3 Votes
How to get better with problem-solving and programming
1 Votes
Ejercicio Pytho
0 Votes
Odd even threads without condition variable
0 Votes
Online voting system
2 Votes
What is that z for
0 Votes
Suggestions needed
4 Votes
Bug on "Java for Beginners Module 3 Quiz"
1 Votes
SQL practice
2 Votes