aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++ Programming and IT Fundamentals
  • Which of the following flags prints '+' before positive n...
Multiple choice

Which of the following flags prints '+' before positive numbers?

  1. ios::showbase

  2. ios::showpoint

  3. ios::showpos

  4. ios::stdio

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This flag is used with setf() function to print '+' before positive numbers.

Keep practicing — related questions

  • Which statement is used to print '+' before positive numbers?
  • Which of the following flags is set to 1 if the .result of the arithmetic or logical operation is 0 or othe...
  • Which of the following 'ios format functions' specifies format flags that can control the form of output di...
  • If you add positive number plus negative number the over flow flag will be set if:
  • What gets printed? int i = 3; if (!i) i++; i++; if (i==3) i+=2; i+=2; printf("%d\n", i);
  • What does the following C statement print? print(“%d”, ++5);
  • What will be the output of the following program : void main() { printf("%d",!(100==100)+1); }
  • What is the output of the following code? #include<stdio.h>void main(){ int s=0; while(s++<10) { if(s<4 && ...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy