answersLogoWhite

0

How do you write flag status in program?

Updated: 10/27/2022
User Avatar

Surajkumar92

Lvl 1
14y ago

Best Answer

for example:

int flag= 0; /* 0/1 = unset/set */
...
printf ("flag=%d which means %s\n", flag, flag? "set": "unset");

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write flag status in program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a note on control status registers and program status word?

yar pls koi to answer likkhooo...


What is psw in 8051?

It is program status register.It i 8 bit ,bit addressable register.It consists of four maths flag.


What is the program status word and explain it?

This register contains the condition code bits, witch are set by comparison instructions, the CPU priority, the mode (user or kernel), and various other control bits. User programs may normally read the entire Program Status Word but typically may write only some of its fields. The Program Status Word plays an important role in system calls and I/O.


An IBM mainframes instruction counter is called?

Program status word or PSW


Write a program to Print pyramid of prime numbers using loops in c?

#include #includevoid main() int prime(int num) { inti,flag; for(i=2;i


What does the status bar on a computer program mean?

The status bar on a computer program shows people the process in percentage that the program is almost complete. It also shows the speed and how long until the program is able to be used.


When was the welsh flag granted official status?

nuna buisness i am debo


Is it unethical to write on a flag?

Actually, I believe that it is unethical to write on a flag, because it is basically shaming the nation (or state, or whoever has the flag as a symbol) that uses this flag. It's really your own opinion, but I believe so.


Where is the status bar?

The status bar is at the bottom of a program window, and it generally displays what the program is currently doing, or information about program objects you may have the cursor over, such as buttons or text boxes.


Do you capitalize flag in Confederate Flag?

Yes.


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


Which TV program shares its name with a naval flag?

kix