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 |
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
what will be the position of the file marker? a: fseek(ptr,0,SEEK_SET); b: fseek(ptr,0,SEEK_CUR);
/*what is the output for*/ void main() { int r; printf("Naveen"); r=printf(); getch(); }
Write a function to find the depth of a binary tree.
13 Answers Adobe, Amazon, EFI, Imagination Technologies,
Finding a number which was log of base 2
How can you relate the function with the structure? Explain with an appropriate example.
#include <stdio.h> main() { char * str = "hello"; char * ptr = str; char least = 127; while (*ptr++) least = (*ptr<least ) ?*ptr :least; printf("%d",least); }
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
main() { extern out; printf("%d", out); } int out=100;
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,
how can i cast a char type array to an int type array
what is the output of following program ? void main() { int i=5; printf("%d %d %d %d %d ",i++,i--,++i,--i,i); }