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

What are segment and offset addresses?

2 Answers   Infosys,


#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }

2 Answers  


void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }

3 Answers  


program to Reverse a linked list

12 Answers   Aricent, Microsoft, Ness Technologies,


main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

3 Answers  






Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..

2 Answers  


Is the following code legal? struct a { int x; struct a b; }

1 Answers  


Design an implement of the inputs functions for event mode

0 Answers   Wipro,


Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

21 Answers   ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,


Is the following code legal? typedef struct a { int x; aType *b; }aType

1 Answers  


#include<stdio.h> #include<conio.h> void main() { int a=(1,2,3,(1,2,3,4); switch(a) { printf("ans:"); case 1: printf("1");break; case 2: printf("2");break; case 3: printf("1");break; case 4: printf("4");break; printf("end"); } getch(); }

0 Answers  


How to swap two variables, without using third variable ?

104 Answers   AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,


Categories