C Codes

Case Conversion using Bitwise

Upper Case to Lower Case: Lower Case to Upper Case:

C Codes

Day Today Codes

Codes that could come handy everyday. The list will continue to grow. Here is the compilation: Day-Today Codes

C Codes · General Discussions

Reverse an Integer – C Code

Github Link. 

C Codes

Generate Permutations – Decrease and Conquer

Uses the definition of n! to generate the permutations. Idea: Remove each item from the given n items one at a time and append it to remaining (n-1)! permutations. Efficiency: O(n!) and as well we have expensive swaps Strategy used: Decrease and Conquer(decrease by 1)

C Codes

Files in C – Sample Program

The code can also be downloaded from Github HERE. Question: Mobile Service Provider – Service Directory ====================================================== A mobile service provider maintains a minimum data service file with following details: Registration number Name Age City Of a customer for some quick information retrieval The file is named as “service.txt”. The console for this is provided… Continue reading Files in C – Sample Program

C Codes

Fixed Length File Records

Properties: Every record in the file has exactly same size (in byte) Computer knows exact location of records so easy access Slow in transferring the records it has large size Sample Program: