Write a procedure to implement highlight as a blinking
operation
Answers were Sorted based on User's Feedback
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 |
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 |
What are segment and offset addresses?
#define clrscr() 100 main() { clrscr(); printf("%d\n",clrscr()); }
void main() { static int i=i++, j=j++, k=k++; printf(“i = %d j = %d k = %d”, i, j, k); }
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); }
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..
Is the following code legal? struct a { int x; struct a b; }
Design an implement of the inputs functions for event mode
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
#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(); }
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,