answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

char b=0;

float a;

clrscr();

a=1.234;

printf("\n%d%d%d%d%.3f",b,b,b,b,a);

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

How do you write printf state for unsigned integer 40000 left justified in a 15-digit field with 8 digit field?

So is it 8 or 15? printf ("%-15u", state); or printf ("%-8u", state);


How do you skip a space in printf?

In printf, you can skip a space by using the formatting options to control the output. For example, you can use the * width specifier to specify a minimum field width, or you can include a - flag to left-align your output. Additionally, simply omitting spaces in the format string will prevent extra spaces from being printed. If you want to skip a specific number of spaces, you can use printf(&quot;%*s&quot;, n, &quot;&quot;); where n is the number of spaces to skip.


Multiple indirection in c language?

C uses pointers for indirection. So, using a pointer to a pointer would be multiple indirection. For example, the following code uses multiple indirection:int i = 42;int *pi = &i;int **ppi = &pi;**ppi++;printf("i is now %d\n", i);


Which data entry field has a check mark in the field GFEBS?

Selection field


Can you specify variable field width in scanf format string?

AnswerYou can't specify a variable field with a fixed format string, but you can get around this by making the format string variable:int width; char format[20]; /* or whatever size is appropriate */ int value; ... sprintf(format, "%%%dd", width); /* generates a string like "%5d" */ scanf(format, &value); The only drawback to this method, other than requiring two statements, is that the compiler can't do a sanity check on the arguments to scanf like it can when the format is a string constant.AnswerIf you want to specify a variable width in a printf format string (as opposed to scanf), you can do the following:printf("%*d", width, num);That will use the value of "width" as the width for formatting the value of "num" as a decimal integer.

Related Questions

How do you write printf state for unsigned integer 40000 left justified in a 15-digit field with 8 digit field?

So is it 8 or 15? printf ("%-15u", state); or printf ("%-8u", state);


What is the maximum and minimum field width of scanf and printf?

Pleas refer to the link below.


What statements describes the result of reversing the current in a current-carrying in a magnetic field?

When the current is reverted, the magnetic field will also be reverted.


How do you skip a space in printf?

In printf, you can skip a space by using the formatting options to control the output. For example, you can use the * width specifier to specify a minimum field width, or you can include a - flag to left-align your output. Additionally, simply omitting spaces in the format string will prevent extra spaces from being printed. If you want to skip a specific number of spaces, you can use printf(&quot;%*s&quot;, n, &quot;&quot;); where n is the number of spaces to skip.


Where can I find information about profit and loss statements?

If you are looking to get into either a finance or accounting field, profit and loss statements would be of critical value. Take a look at: en.wikipedia.org/wiki/Profit_and_Loss


What of the following is a false statement with regard to the information in the field trip on prenatal exposure?

To determine which statement is false regarding prenatal exposure from the field trip, I would need the specific statements to evaluate and compare them against the information discussed. Please provide the statements, and I can help identify the false one.


Name two type of evidence that are testimonial?

Witness testimony - statements given by individuals who have witnessed or have knowledge of a situation. Expert testimony - opinions or statements provided by professionals who are considered to have expertise in a particular field.


The date of the CPA's opinion on the financial statements of his client is is?

the date of the completion of all important audit procedures.(Field work completed).


In the field of accounting what does the term FASB goodwill refer to?

In the field of accounting the Finical Accounting Standards Board (FASB) provides guidance on how to deal with goodwill and how to account for it on finical statements. When done properly goodwill can provide tax relief for a company.


what- A farmer plows rows in his field to sow crops. The border of his field is surrounded by a fence to keep out pests. If the two corners of the fence form right angles, which of the following statements is not necessarily true?

the sides of the fence are parallel to the rows of crops.


What are some examples of libelous statements?

Libelous statements include false allegations that harm an individual's reputation, such as falsely claiming someone is involved in criminal activity, like embezzlement or drug dealing. Other examples could be asserting that a person has a serious disease or illness when they do not, or spreading rumors that a professional is incompetent or unethical in their field. These statements, if published or broadcasted, can lead to legal action for defamation.


What field in the cron table contains the absolute path-name to the command to be executed?

In the cron table, the last field contains the absolute path-name to the command that is to be executed. This field specifies the script or command that will run according to the schedule defined by the preceding time and date fields. It is crucial to provide the full path to ensure that the cron job can locate and execute the command correctly.