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
What is the use of clrscr?
Explain what is the purpose of "extern" keyword in a function declaration?
Differentiate between a structure and a union.
What are dangling pointers in c?
How will you write a code for accessing the length of an array without assigning it to another variable?
What will the preprocessor do for a program?
Is it fine to write void main () or main () in c?
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?
What is static volatile in c?
How can my program discover the complete pathname to the executable from which it was invoked?
Why c is called object oriented language?
Is boolean a datatype in c?
Can we compile a program without main() function?
pierrot's divisor program using c or c++ code
Is it better to bitshift a value than to multiply by 2?