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.
Write a C program that uses functions. The main() method holds an integer variable named numberOfEggs to which you will assign a value. Create a method called myEggs() to which you pass numberOfEggs. The method displays the eggs in dozens; for example, 50 eggs is 4 full dozen (with 2 eggs remaining).
Wap to calculate the area and perimeter of swuare
WAP Write the following menu driven program for the binary search tree
----------------------------------------
Binary Search Tree Menu
----------------------------------------
1. Create
2. In-Order Traversal
3. Pre-Order Traversal
4. Post-Order traversal
5. Search
6. Find Smallest Element
7. Find Largest Element
8. Deletion of Tree
9. Quit