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

main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }

6 Answers  


Write a routine to implement the polymarker function

0 Answers   TCS,


What is "far" and "near" pointers in "c"...?

3 Answers  


write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

0 Answers  


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

1 Answers  






String copy logic in one line.

11 Answers   Microsoft, NetApp,


main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


#include<stdio.h> main() { register i=5; char j[]= "hello"; printf("%s %d",j,i); }

2 Answers  


In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

0 Answers   TCS,


Write a routine that prints out a 2-D array in spiral order

3 Answers   Microsoft,


main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }

2 Answers  


main() { int c=- -2; printf("c=%d",c); }

1 Answers   TCS,


Categories