Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
Crack d Interview

Crack d Interview

Ratings: (0)|Views: 4|Likes:
Published by Ratan Modi

More info:

Published by: Ratan Modi on Dec 19, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/10/2014

pdf

text

original

 
 1
 
 
 2
 
Contents
 
Linked Lists
o
 
How do you reverse a singly linked list? How do you reverse a doublylinked list? Write a C program to do the same.
Updated!
 
o
 
Given only a pointer to a node to be deleted in a singly linked list, how doyou delete it?
Updated!
 
o
 
How do you sort a linked list? Write a C program to sort a linked list.
o
 
How to declare a structure of a linked list?
o
 
Write a C program to implement a Generic Linked List.
o
 
How do you reverse a linked list without using any C pointers?
Updated!
 
o
 
How would you detect a loop in a linked list? Write a C program to detecta loop in a linked list.
o
 
How do you find the middle of a linked list? Write a C program to returnthe middle of a linked list
o
 
If you are using C language to implement the heterogeneous linked list,what pointer type will you use?
o
 
How to compare two linked lists? Write a C program to compare twolinked lists.
o
 
How to create a copy of a linked list? Write a C program to create a copyof a linked list.
o
 
Write a C program to free the nodes of a linked list
Updated!
 
o
 
Can we do a Binary search on a linked list?
o
 
Write a C program to return the nth node from the end of a linked list.
 New!
 
o
 
How would you find out if one of the pointers in a linked list is corruptedor not?
 New!
 
 
Write your own ....
o
 
Write your own C program to implement the atoi() function
Updated!
 
o
 
Implement the memmove() function. What is the difference between thememmove() and memcpy() function?
Updated!
 
o
 
Write C code to implement the strstr() (search for a substring) function.
o
 
Write your own printf() function in C
o
 
Implement the strcpy() function.
Updated!
 
o
 
Implement the strcmp(str1, str2) function.
Updated!
 
o
 
Implement the substr() function in C.
o
 
Write your own copy() function
o
 
Write C programs to implement the toupper() and the isupper() functions
Updated!
 
o
 
Write a C program to implement your own strdup() function.
o
 
Write a C program to implement the strlen() function
 
 3
 
Programs
o
 
Write a C program to swap two variables without using a temporaryvariable
o
 
What is the 8 queens problem? Write a C program to solve it.
o
 
Write a C program to print a square matrix helically.
o
 
Write a C program to reverse a string
Updated!
 
o
 
Write a C program to reverse the words in a sentence in place.
Updated!
 
o
 
Write a C program generate permutations.
o
 
Write a C program for calculating the factorial of a number
o
 
Write a C program to calculate pow(x,n)?
o
 
Write a C program which does wildcard pattern matching algorithm
o
 
How do you calculate the maximum subarray of a list of numbers?
o
 
How to generate fibonacci numbers? How to find out if a given number isa fibonacci number or not? Write C programs to do both.
o
 
Solve the Rat In A Maze problem using backtracking.
o
 
What Little-Endian and Big-Endian? How can I determine whether amachine's byte order is big-endian or little endian? How can we convertfrom one to another?
o
 
Write C code to solve the Tower of Hanoi problem.
o
 
Write C code to return a string from a function
Updated!
 
o
 
Write a C program which produces its own source code as its output
o
 
Write a C progam to convert from decimal to any base (binary, hex, octetc...)
o
 
Write C code to check if an integer is a power of 2 or not in a single line?
o
 
Write a C program to find the GCD of two numbers.
Updated!
 
o
 
Finding a duplicated integer problem *
o
 
Write code to remove duplicates in a sorted array.
Updated!
 
o
 
Find the maximum of three integers using the ternary operator.
o
 
How do you initialize a pointer inside a function?
o
 
Write C code to dynamically allocate one, two and three dimensionalarrays (using malloc())
 New!
 
o
 
How would you find the size of structure without using sizeof()?
o
 
Write a C program to multiply two matrices.
o
 
Write a C program to check for palindromes.
o
 
Write a C program to convert a decimal number into a binary number.
o
 
Write C code to implement the Binary Search algorithm.
o
 
Wite code to evaluate a polynomial.
o
 
Write code to add two polynomials
o
 
Write a program to add two long positive numbers (each represented bylinked lists).
o
 
How do you compare floating point numbers?
Updated!
 
o
 
What's a good way to implement complex numbers in C?
o
 
How can I display a percentage-done indication on the screen?
o
 
Write a program to check if a given year is a leap year or not?
o
 
Is there something we can do in C but not in C++?
o
 
How to swap the two nibbles in a byte ?
o
 
How to scan a string till we hit a new line using scanf()?
o
 
Write pseudocode to compare versions (like 115.10.1 vs 115.11.5).

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->