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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of clrscr?

579


Explain what is the purpose of "extern" keyword in a function declaration?

607


Differentiate between a structure and a union.

748


What are dangling pointers in c?

627


How will you write a code for accessing the length of an array without assigning it to another variable?

603






What will the preprocessor do for a program?

576


Is it fine to write void main () or main () in c?

533


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1572


What is static volatile in c?

562


How can my program discover the complete pathname to the executable from which it was invoked?

650


Why c is called object oriented language?

571


Is boolean a datatype in c?

533


Can we compile a program without main() function?

618


pierrot's divisor program using c or c++ code

1715


Is it better to bitshift a value than to multiply by 2?

643