Questions: 1 978

Answers by our Experts: 1 850

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Implement merge sort.

Implement quick sort. 


  1. Fill in the missing statements in the following program
  2. #include<stdio.h>
  3. int addition ();
  4. int  ()
  5. {
  6. int result;
  7. int (*ptr) ();
  8. ptr = &addition;
  9.  = (*ptr) ();
  10. printf ("The sum is d", result);
  11. }
  12.  
  13. int addition ()
  14. {
  15. int a, b;
  16. ("Enter two numbers: ");
  17.  ("%d %d", &a, &b);
  18. return a + b;
  19. }

What will be the output of the following code segment?

void fun()

{

 static int i=10;

print ("%d", ++i);

}

int main ()

{

fun ();

fun();




func (int i)

{

if (i%2) return 0;

else return 1;

}

int main ()

{

int i =3;

i= func (i);

i= func (i);

printf ("%d";i);




Create a program of short job first (SJF)-non preemptive CPU Scheduling that will display gantt chart, total turnaround time, average turnaround time, total waiting time and average waiting time.


How to to implement c program for sjf preemptive shedulling along with Gantt chart


1. Triple Slash




by CodeChum Admin






Samurais are so awesome! I'd like to imitate their amazing sword skills some time but I just don't have the courage to harm myself, so I'd just like to print out three forward slashes (\) to digitally imitate the samurai's triple slash skill. Haha!










Sounds easy, right? Then code it now!






Output






Three lines with a single backslash symbol.






\




\

A vegetable shop owner maintains the data in a doubly linked list. Write a menu-driven program that maintains a doubly linked list. Each vegetables node must contain the features: unique id, date of inclusion in stock, vegetable name, shape, raw eating/cooking feature, weight, price per kilogram. Execute all the following operations and attach screenshots of outputs along with code typed/written (code screenshot will not be allowed) in the submission pdf file. 1. Inclusion of 2 different type of vegetables. 2. Display data of all vegetables in stock nodes. 3. Delete a node based on searching criteria – i) stock inclusion date is 10 days ago and ii) if a customer buys a vegetable and weight of that vegetable in stock has reached to zero. 4. Inclusion of two new vegetables (same or different). 5. Display data of all vegetables in stock. 


Enter the first character: C



Enter the second character: U



C



.



.



.



U

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS