which function is used to clear the buffer stream on gcc?
I wrote following code on gcc
printf("\nenter two numbers:\t");
printf("enter number is %d and %d",a,b);
printf("enter character is %c",ch);
in above progarm ch could not be scan.
why?plz tell me solution.
Write a C program that defines a 2-dimentional integer array
called A . Then the elements of this array should
randomly be initialized either to 1 or 0. The program should
then print out all the elements in the diagonal (i.e.
a, a,a, a, ……..a). Finally,
print out how many zeros and ones in the diagonal.
Given a table of the form:
Product Sold on
There are 30 products and 10,000 records of such type. Also
the month period during which sales happened is given to u.
Write the program to display the result as:
Product Month No. of copies
A January 12
A February 15
A March 27
B January 54
B February 15
B March 10
C January 37
write a program to input a natural number less than and
display it in words.test your program on the sample data and
some random data
sample input= 29
sample output= Twenty nine
sample output= out of range
sample output =one hundred and nineteen
sample output=five hundred
how to manage mlng timer because they don't explain what's
1.Why does only one copy of a servlet object get created?
What happens if you want to remove an old servlet object
currently running but do not want to stop the entire
2.How does one servlet object deal with interactions from
many browser? (e.g. if your servlet ran an email site, how
can it keep track of hundreds of users logging in, reading
their mail, etc.)
How to access oralce10g data from server to client in LAN?
write a program to calculate the amount of investment after
a period n years if the principal investors was p and
interest is calculated using compound
For printing a message we use System.out.println in normal
We use String msg="text.....";
Can't we use String msg=" " in normal programs and
System.out.println("........") in applets.
Please answer this question?
Code to Block submission of form by pressing Enter Key
Cluster head selection in Wireless Sensor Network using C programming language.
How can call any
onblur etc events
how to determine which Mouse Button was pressed
Definition of priority queue was given. We have to implement
the priority queue using array of pointers with the
priorities given in the range 1..n.
The array could be accessed using the variable top. The list
corresponding to the array elements contains the items
having the priority as the array index.
Adding an item would require changing the value of top if it
has higher priority than top.
Extracting an item would require deleting the first element
from the corresponding queue.
The following class was given:
void put(int item, int priority); // inserts the item with
the given priority.
int get(int priority); // extract the element with the
int count(); // returns the total elements in the priority
int isEmpty(); // check whether the priority queue is empty
We had to implement all these class functions.
How to change winform look?
Who could write how to find a prime number in dynamic array?
Could u please tell me any UNIX scripts that 'll lead to
find the network latency of the servers.?or else any unix
command to find the network latency of a server?Thnx in