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 |
String reverse with time complexity of n/2 with out using temporary variable.
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Finding a number multiplication of 8 with out using arithmetic operator
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
main( ) { static int a[ ] = {0,1,2,3,4}; int *p[ ] = {a,a+1,a+2,a+3,a+4}; int **ptr = p; ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *ptr++; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); *++ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); ++*ptr; printf(“\n %d %d %d”, ptr-p, *ptr-a, **ptr); }
write a program to Insert in a sorted list
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++; } }
#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(); }
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }