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

Answers were Sorted based on User's Feedback



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

Answer / balakrushna (bk)

Yes.
We can get output using puts() for printing a string or
putchar() for printing single character.
So printf() is not necessary here for printing.

Is This Answer Correct ?    74 Yes 19 No

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

Answer / vignesh1988i

ya wit out using printf we can print.... using putchar,puts
functions etc.........

Is This Answer Correct ?    41 Yes 14 No

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

Answer / pratap

well, dats fine !!
But can ne1 tell me, is it possible to print sumthing widout
using any LIBRARY FUNCTION ??

Is This Answer Correct ?    28 Yes 10 No

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

Answer / bhupendra dhire

/*this program is without printf() and without (;) using far pointer and functions */

int display(char *ch)
{
char far *p;
int i;
static int c=0;
p=(char far *)0xb8000000l;
for(i=0;ch[i]!='\0';i++,c=c+2)
p[c]=ch[i];
}
void main()
{
if(display("BHUPENDRA DHIRE ")){}
}

Is This Answer Correct ?    21 Yes 11 No

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

Answer / murali

it is possible . with using if condition and library
function

Is This Answer Correct ?    16 Yes 9 No

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

Answer / bandla.madhu

don't say puts&putchar.we have to think ina manner that how
to write code for printf function.ofcourse those two are
also correct.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / 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

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

Answer / mahendran

#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm, "");
outtextxy(75,170,"Welcome");
getch();
}

Is This Answer Correct ?    5 Yes 2 No

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

Answer / murali

my qyestion is without using library function how can print?

Is This Answer Correct ?    6 Yes 6 No

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

Answer / gokul

It's impossible without using any library function

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More C Interview Questions

Using which language Test cases are added in .ptu file of RTRT unit testing???

0 Answers  


What is null character in c?

0 Answers  


Can a file other than a .h file be included with #include?

0 Answers   Aspire, Infogain,


char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable)

7 Answers   Mascot,


You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?

1 Answers  






what are two kinds of java

2 Answers  


Explain how do you search data in a data file using random access method?

0 Answers  


What will the preprocessor do for a program?

0 Answers   Aspire, Infogain,


main() { static char *s[]={"black","white","yellow","voilet"}; char **ptr[]={s+3,s+2,s+1,s}, ***p; p=ptr; **++p; printf("%s",*--*++p+3); }

1 Answers  


Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 Answers  


What is structure in c language?

0 Answers  


What is openmp in c?

0 Answers  


Categories