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

array contains zeros and ones as elements.we need to bring zeros one side and one other side in single parse. ex:a[]={0,0,1,0,1,1,0,0} o/p={0,0,0,0,0,1,1,1}

12 Answers   Google, Motorola,


Why void is used in c?

0 Answers  


How to swap two values using a single variable ? condition: Not to use Array and Pointer ?

6 Answers  


Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 Answers  


to get a line of text and count the number of vowels in it

3 Answers   Satyam,






In C, What is the #line used for?

2 Answers  


What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 Answers  


what is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....

1 Answers   TCS,


what is the difference between #include<stdio.h> and #include "stdio.h" ?

3 Answers  


extern static int i func() { i =10; i++; printf("%d \n",i); } main() { i =20; printf("%d \n",i); func(); printf("%d \n",i); }

2 Answers  


what is difference b/w extern & volatile variable??

6 Answers   Teleca,


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

0 Answers  


Categories