25. It takes five minutes to pass a rumour from one
person to two other persons. The tree of rumour continues.
Find how many minutes does it take spread the rumour to 768
persons. ?
Answer Posted / bindu
In the first 5 mins three people come to know of the
rumour; including the first person (who is still able to
spread the rumour!), i..e every 5 mins, three times the
people come to know of the rumour. So it just takes 30 mins
for 729 people and 35 mins for 2187 people to know of the
rumour.
Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Explain built-in function?
What is null pointer in c?
What is a null pointer in c?
Explain what is the difference between text files and binary files?
What header files do I need in order to define the standard library functions I use?
What is new line escape sequence?
Create a simple code fragment that will swap the values of two variables num1 and num2.
if p is a string contained in a string?
What are the benefits of c language?
Write a C program linear.c that creates a sequence of
processes with a given length. By
sequence it is meant that each created process has exactly
one child.
Let's look at some example outputs for the program.
Here the entire process sequence consists of process 18181:
Sara@dell:~/OSSS$ ./linear 1
Creating process sequence of length 1.
18181 begins the sequence.
An example for a sequence of length three:
Sara@dell:~/OSSS$ ./linear 3
Creating process sequence of length 3.
18233 begins the sequence.
18234 is child of 18233
18235 is child of 18234
........ this is coad .... BUt i could not compleate it .....:(
#include
What is string in c language?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What is array in c with example?