in C-programming language without using printf statement
can we get output r not ? if yes how and if no also how ?

Answer Posted / shreya jha

it's possible to print something using if and without semicolon(;)

#include<stdio.h>
#include<conio.h>
int main()
{
if(printf("HELLO USER"))
{
}
getch();
return 0;
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the basic data types associated with c?

799


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

676


What are variables and it what way is it different from constants?

765


What is array in C

691


What is malloc calloc and realloc in c?

647






How can I manipulate strings of multibyte characters?

627


What are the properties of union in c?

575


how can f be used for both float and double arguments in printf? Are not they different types?

597


What is cohesion in c?

530


What is the newline escape sequence?

571


4. main() { int c=- -2; printf("c=%d",c); }

1354


What is the use of extern in c?

633


Are enumerations really portable?

583


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

1529


Why we use int main and void main?

530