C And Data Structure interview Questions

Write a C program to create a mirror copy of a tree (left nodes become right and right nodes
Write a C program to compute the maximum depth in a tree?
Write a C program to find the mininum value in a binary search tree.
Write C code to determine if two trees are identical
Write a C program to delete a tree (i.e, free up its nodes)
Write a C program to determine the number of elements (or size) in a tree.
Write a C program to find the depth or height of a tree.
Write your own trim() or squeeze() function to remove the spaces from a string.
How to generate prime numbers? How to generate the next prime after a given prime?
How to add two numbers without using the plus operator?
Write a program to check if the stack grows up or down
Write a program to merge two arrays in sorted order, so that if an integer is in both the arrays, it
Given two strings A and B, how would you find out if the characters in B were a subset of the
How can we sum the digits of a given number in single statement?
Write code to round numbers
Write a program to have the output go two places at once (to the screen and to a file also)
How do you find out if a machine is 32 bit or 64 bit?
Is there a way to multiply matrices in lesser than o(n^3) time complexity?
Write a simple piece of code to split a string at equal intervals
How to fast multiply a number by 7?
How do you get the line numbers in C?
Write pseudocode to compare versions (like 115.10.1 vs 115.11.5).
How to scan a string till we hit a new line using scanf()?
How to swap the two nibbles in a byte ?
Is there something we can do in C but not in C++?
Write a program to check if a given year is a leap year or not?
How can I display a percentage-done indication on the screen?
What’s a good way to implement complex numbers in C?
How do you compare floating point numbers?
Write a program to add two long positive numbers (each represented by linked lists).

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>