Implement merge sort.
Implement quick sort.
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