answersLogoWhite

0


Best Answer

Yes. However, C is a type-sensitive language thus PRINTF and printf would need to be defined as separate functions. However, names using all caps are conventionally used to denote macros in C thus you can easily define PRINTF as an alias for printf:

#define PRINTF printf;

int main (void) {

PRINTF ("%d", 42);

}

The C precompiler will substitute all instances of the symbol PRINTF with printf, thus the code seen by the compiler will become:

int main (void) { printf ("%d", 42);

}

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

puts, fputs, write, fwrite, putc, fputc, putchar

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write an output without using printf function in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


How can you print percent d on the screen using printf?

printf("Your text here %d", your_data); or maybe you want to see '%d' as output? Try one of these: printf ("%%d"); printf ("%cd", '%'); printf ("%s", "%d"); fputs ("%d", stdout);


How do you print a statement in c without using any function like printf putc puts etc?

The only way i see is to use : using the right file descriptor


How can we write our name in C programming language without using printf?

You can use fputs() instead of printf().


How do you print 0001 in C programming?

its quite simple using printf function


What is program in c to swap entered two numbers without using third variable?

The required c program is given below /*Swapping(interchange) the two entered numbers*/ #include<stdio.h> main() { /*Without using third variable*/ int a,b,t; printf("Enter a:"); scanf("%d",&a); printf("Enter b:"); scanf("%d",&b); a=a+b; b=a-b; a=a-b; printf("\n After swapping without using third variable"); printf("\na=%d\nb=%d",a,b); }


How can a person write a program without using printf function in C language?

Here is an example:#include int main (void){puts ("Hello, world");return 0;}


How do you print the message without using printf and semicolon?

use cout << simple


What are the example of turbo c with using scan and print function?

#include<stdio.h> Void main() { int a,b; printf("Enter a Number: "); // for print function as an out-put scanf("%d",&a); //for scan function as in input /* Here we can use print function once again as: */ a=a++; printf("%d",a); }


How to print float or double without using printf?

With functions like ecvt, fcvt, gcvt.


Can anyone give a logic in c plus plus to print something on screen using printf statement but without semicolon used after printf statement?

try to usecondition ? value if true : value if falseor: if (printf ("Hello")) {}


What is post decrement?

Post decrement is where you decrease the variable by one after using it. void someFunc(int s) { printf(s); } void main() { int s = 3; someFunc(s--); printf(s); } will output 3 then 2.