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 |
plz tell me the solution.......... in c language program guess any one number from 1 to 50 and tell that number within 8 asking question in yes or no...............
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }
main() { char *p = “ayqm”; char c; c = ++*p++; printf(“%c”,c); }
main() { char a[4]="HELLO"; printf("%s",a); }
int a = 10 + 10 .... ,... A = A * A What would be the value of A? The answer is 120!! Could anyone explain this to me.
2 Answers Bosch, eInfochips, HCL, IHCL,
{ int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
what is variable length argument list?
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4