answersLogoWhite

0

putchar used to write one character to output device Example putchar (variable_name); #include<stdio.h> void main() { char alpha='x'; clrscr(); putchar(alpha); putchar('\n'); /*or*/ putchar('\Y'); getch(); }

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

How do you skip a line in C program?

putchar ('\n');


How do you print double quote sign in c?

putchar ('"'); puts ("""); etc


How will you print percent in c language?

putchar ('%'); puts ("%"); printf ("%%"); etc...


What loops does not need a counter?

Random example: while ((c= getchar()) != EOF) putchar (c);


How printf function is used within a C program and is different from putchar function?

1. use the help/manual 2. entirely different: put one character vs put string with formatted inserts


What is the printf in c?

Printf is a function which can output a "string literal," which means that unlike its similiar, putchar, it can in fact print entire sentences, including formatted data. Also, it's defined in stdio.h.


Input and output of turbo c?

input scanf() , getch() , getche() output printf() , putch() , putchar()


What are the differences between puts and fputs?

All three functions output a single character, either to the console or to a FILE. putc() takes a character argument, and outputs it to the specified FILE. fputc() does exactly the same thing, and differs from putc() in implementation only. Most people use fputc(). putchar() writes the character to the console, and is the same as calling putc(c, stdout). puts() is a multicharacter function and putchar() is single character function


Functions except gets and puts in c?

printf , scanf , getchar, putchar, getc are the other operators in C except gets and puts..


How do you print a string using putchar?

You would iterate over all characters within the string, printing each character with the putchar function. In C, strings are terminated with a null byte, so you'd stop when that null byte has been reached. Example: void printme(const char* me) { while (*me) { putchar(*me++); } } Needless to say this method is inefficient compared to using API that outputs the entire string at once, but the general approach of iterating over all characters in a string is used frequently.


How do you print on console without using printf or puts in c language?

write, putchar, putc, fputc etc


How do you convert binary to decimal using c?

static void tobin_core (int n) { if (n&gt;1) tobin_core (n/2); putchar ('0'+n%2); } void tobin (int n) { if (n&lt;0) { putchar ('-'); n= -n; } tobin_core (n); }

Trending Questions
Is solar power the main source of sustainable energy in KSA? What is the maximum pressure for leak testing? What are the different types of array explain with examples? Would there be any Memory issues or execution issues or any merits or demerits of using 1D array of size 'mn' instead of using 2D array of size mxn? How does pn junction diode can be used as an electronic switch? How would you describe the construction and working principle of PMMC instruments with its three advantages? What are the hazards associated with the turning operations and how can they be minimised Such as moving parts of machinery or airborne and hot metal particles or sharp cutting tools and sharp edges? Why is there water coming out of the tub faucet but not from the shower head? On some sections of railroadtrack there is a second set of rails inside the rails the train actually runs on These may be found on a bridge or in a station What is the purpose of these rails? Automobile batteries use low or high internal resistance? Is Gravel stronger than sand? Is it worth to study CIMA as an additional qualification for an electronic engineer? What is competency in results oriented? How strong is soldering? Why is your site so screwed up with Java Script? Is the mechanical advantage a constant value or can it be made to vary? What welding rod used to weld A182 gr.f22? Which two pointer does not increment or decrement in arithmetic array? When is android 18 turned into a human? What material might a Grohe kitchen faucet be made of?