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 |
void main() { int *mptr, *cptr; mptr = (int*)malloc(sizeof(int)); printf(“%d”,*mptr); int *cptr = (int*)calloc(sizeof(int),1); printf(“%d”,*cptr); }
What is the hidden bug with the following statement? assert(val++ != 0);
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
WAP to display 1,2,3,4,5........N
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++; } }
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
why array index always strats wuth zero?
How we will connect multiple client ? (without using fork,thread)
find simple interest & compund interest
main() { int i=4,j=7; j = j || i++ && printf("YOU CAN"); printf("%d %d", i, j); }
abcdedcba abc cba ab ba a a
String copy logic in one line.