Write a procedure to implement highlight as a blinking
operation

Answers were Sorted based on User's Feedback



Write a procedure to implement highlight as a blinking operation..

Answer / anurag(bhu mca)

The function textattr in conio.h can be use for this
purpose a small program has presented here...

#include<conio.h>
int main()
{
textattr(129);
cprintf("My name is anurag...");
return 0;
}


here in the textattr till 128 only colors would be set and
more than it colors with blink.
for more see turbo c++ help (ctrl+F1)

Is This Answer Correct ?    13 Yes 3 No

Write a procedure to implement highlight as a blinking operation..

Answer / sourav mitra(hit)

// To blink the word in c u have to use textattr()
#include<conio.h>
int main()
{
int color;
textattr(129+10);
cprintf("please wait");
return 0;
getch();
}

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Code Interview Questions

void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(“%d”,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(“%d”,*cptr); }

1 Answers  


What is the hidden bug with the following statement? assert(val++ != 0);

1 Answers  


main() { int *j; { int i=10; j=&i; } printf("%d",*j); }

9 Answers   HCL, Wipro,


WAP to display 1,2,3,4,5........N

2 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }

1 Answers  






#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


why array index always strats wuth zero?

2 Answers  


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,


find simple interest & compund interest

2 Answers  


main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }

1 Answers  


abcdedcba abc cba ab ba a a

2 Answers  


String copy logic in one line.

11 Answers   Microsoft, NetApp,


Categories