ExamVeda
Login
Home
This question belongs to C Program C Fundamentals
C Fundamentals
?

"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.

Answer & Solution
Correct Answer: Option D
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

35 Comments
MAHIBOOB JILANI
MAHIBOOB JILANI 3 years ago
because one %is for 15 and another for declaration
AKASH A
AKASH A 5 years ago
It's gud to answer
Aashish Bhandari
Aashish Bhandari 6 years ago
printf("My salary was increased by 15%%");
Sahilendra Kumar
Sahilendra Kumar 6 years ago
How is it..! Explain.
Pettela Saranya
Pettela Saranya 7 years ago
%%=% same as. ==--=
Vajragotti Pooja
Vajragotti Pooja 7 years ago
Please explain once again
Avinav Nayak
Avinav Nayak 7 years ago
in printf function to print special characters as it is , we use the percentage(%) sign before the special character ,
for example
#include
#include
main()
{
printf("%&");

}

this will produce out put "&"

#include
#include
main()
{
printf("%@");

}
this will produce output "@"

Devi Chikkam
Devi Chikkam 8 years ago
can anyone explain it please
Jugnu Kumar
Jugnu Kumar 8 years ago
To print a % we need to use %% otherwise it will not understand what to print.
Deepak Prajapati
Deepak Prajapati 9 years ago
Correct answer is D
Ravi K
Ravi K 9 years ago
B and D answer same so worng options correct answer(B and D)
Vaishnavi Ramar
Vaishnavi Ramar 9 years ago
If %% is given in printf means it will a single %..so the answer is printf("My salary was increased by 15%%");
Priya Dharsani
Priya Dharsani 9 years ago
option is wrng
AMBATI MALLIKARJUNA
AMBATI MALLIKARJUNA 9 years ago
How it is possible, can any one explain ?
Fun Mania
Fun Mania 9 years ago
answer is wrong please correct it
Gokila Dharani
Gokila Dharani 9 years ago
If we give as per the option, then the output is displayed with "!" at the end of the statement. But the required output is without "!". So please give the correct solution to this.....
Ajinkya Bhirad
Ajinkya Bhirad 9 years ago
Naacho
Komal Deshmukh
Komal Deshmukh 9 years ago
how it is possible
if %% will given two time it will print it two time their is no doubt .... answer is wrong
RAJAT AGRAWAL
RAJAT AGRAWAL 9 years ago
Its wrong...how there can be % be two times...
BHUMA SUBBA
BHUMA SUBBA 9 years ago
how
Rekha.A It2015
Rekha.A It2015 9 years ago
howw ????????
Rekha.A It2015
Rekha.A It2015 9 years ago
howw ????????
Rekha.A It2015
Rekha.A It2015 9 years ago
?????????????????????? why
Vivek Daniyal
Vivek Daniyal 9 years ago
plzzz explain??????????????????????? how
Grigory Peter
Grigory Peter 9 years ago
how ?
Tinkal Kalariya
Tinkal Kalariya 9 years ago
explain again
Hemanth Tunuguntla
Hemanth Tunuguntla 9 years ago
If there are two backslash// symbols then they will be treated as specially and what's is the explanation of two percentage symbols
Shrutika Dhumal
Shrutika Dhumal 9 years ago
how????
Pankaj Rai
Pankaj Rai 9 years ago
Pls explain the concept of two percent symbol in printf
Gourav Garg
Gourav Garg 9 years ago
printf("my salary was increased by 15%%!");
why we use two percentage sign not one.
plz explain.
Manikandan Annamalai
Manikandan Annamalai 9 years ago
y 2 % is used?
Vinela Reddy
Vinela Reddy 9 years ago
Y two % symbols are used?
Shubham
Shubham 10 years ago
why this happend..?
Abhijeet Chimankar
Abhijeet Chimankar 10 years ago
'%%' is used to produce '%' in output in print function.
'!' doesn't have any effect on output. fyi only...
Hemendra Kumar
Hemendra Kumar 11 years ago
printf("My salary was increased by 15%%!");
this will print the required line.