Ques 6: Implement the strcmp(str1, str2) function. [Answer]
Ques 7: Implement the substr() function in C. [Answer]
Ques 8: Write your own File copy() function. [Answer]
Ques 9: Write C programs to implement the toupper() and the isupper() functions. [Answer]
Ques 10: Write a C program to implement your own strdup() function. [Answer]
Ques 11: Write a C program to implement the strlen() function. [Answer]
Ques 12: Write your own strcat() function. [Answer]
Ques 10: Write a C program to implement your own strdup() function. [Answer]
Ques 11: Write a C program to implement the strlen() function. [Answer]
Ques 12: Write your own strcat() function. [Answer]
C Programming Questions
Ques 1: Right a program to implement malloc.
Ques 2: Write a C program to swap two variables without using a temporary variable . [Answer]
Ques 3: What is the 8 queens problem? Write a C program to solve it. [Answer]
Ques 4: Write a C program to print a square matrix helically. [Answer]
Ques 5: Write a C program to reverse a string. [Answer]
Ques 6: Write a C program to reverse the words in a sentence in place. [Answer]
Ques 7: Write a C program generate permutations. [Answer]
Ques 8: Write a C program to calculate pow(x,n). [Answer]
Ques 9: Write a C program which does wildcard pattern matching algorithm. [Answer]
Ques 10: How do you calculate the maximum subarray of a list of numbers? [Answer]
Ques 11: How to generate fibonacci numbers? How to find out if a given number is a fibonacci number or not? Write C programs to do both. [Answer]
Ques 12: Solve the Rat In A Maze problem using backtracking. [Answer]
Ques 13: What Little-Endian and Big-Endian? How can I determine whether a machine's byte order is big-endian or little endian? How can we convert from one to another? [Answer]
Ques 14: Write C code to solve the Tower of Hanoi problem. [Answer]
Ques 15: Write C code to return a string from a function. [Answer]
Ques 16: Write a C program which produces its own source code as its output. [Answer]
Ques 17: Write a C progam to convert from decimal to any base (binary, hex, oct etc...). [Answer]
Ques 18: Write C code to check if an integer is a power of 2 or not in a single line? [Answer]
Ques 19: Write a C program to find the GCD of two numbers. [Answer]
Ques 20: Finding a duplicated integer problem. [Answer]
Ques 21: Write code to remove duplicates in a sorted array. [Answer]
Ques 22: How do you initialize a pointer inside a function? [Answer]
Ques 23: Write C code to dynamically allocate one, two and three dimensional arrays (using malloc()). [Answer]
Ques 24: How would you find the size of structure without using sizeof(). [Answer]
Ques 25: Write a C program to multiply two matrices. [Answer]
Ques 26: Write a C program to check for palindromes. [Answer]
Ques 27: Write C code to implement the Binary Search algorithm. [Answer]
Ques 28: Write code to add two polynomials. [Answer]
Ques 29: Write a program to add two long positive numbers (each represented by linked lists). [Answer]
Ques 30: How do you compare floating point numbers? [Answer]
Ques 31: Is there something we can do in C but not in C++? [Answer]
Ques 32: How to swap the two nibbles in a byte ? [Answer]
Ques 33: How to scan a string till we hit a new line using scanf()? [Answer]
Ques 34: How do you get the line numbers in C? [Answer]