Categories
- Computer Science (62)
- C Language (16)
- Coding Discussions (29)
- Linux / Unix Shell (16)
- Others (4)
- Overview (3)
- Entertainment (4)
- GNU+Linux+FOSS (41)
- Humor (17)
- Writings (5)
- Computer Science (62)
Tags
api array bash boot C++ casual combinatorics counting C program fedora firefox gcc gimp google graphics grub html id3 implementation defined behaviour internet ipod linux numerical octave poll prime number Programming R random number recursion shift operators skype undefined behavior video wallpaper wordpress workflowStackOverflow
Area51 Stackexchange Proposals to Follow
Top 10
- Read multiple arguments in bash script
- Floating point math operations in bash
- Implement stack using a queue
- Recursive Solution to Towers of Hanoi
- Little and Big Endian conversion
- Bash Script : Print lines of a file in reverse order
- C Language Constructors and Destructors with GCC
- Choose login manager GDM or KDM in Fedora
- Simpson's 1/3rd Rule
- Generating random numbers from Normal distribution in C
Recent Comments
Polls
Category Archives: C Language
C LANGUAGE UERS! Y U NO SEE STANDARDS!
I had to make this. There are people who give a damn to the standards and follow the stone age Turbo C 3.1 compiler, run programs compiled by it. In the cases for compiler dependent and undefined behaviours, they try … Continue reading
C Q&A #5: A question about assignment operation and evaluation
Here is another C code snippet question. Consider the following piece of code, and spot if there is a problem in it or not.
Dynamically allocating 2d array with adjacent rows in memory
In a previous post “Allocating multidimentional array at runtime in C” I have explained a technique to allocate multidimensional arrays on runtime. While playing around with OpenMPI, I came to know that while sending/receiving a buffer, it requires the elements … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged array, C program, Programming, workflow
2 Comments
Journey of a simple recursive code
Some one asked the following question in StackOverflow Implement a function with prototype char *repeat(char *s, int n) so that it creates and returns a string which consists of n repetitions of the input string s. For example: if the … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged C program, C++, Programming, recursion
Leave a comment
C Q&A #4: Calling main recursively
What do you think about the following C Code ? What will be the output.
Posted in C Language, Computer Science
Tagged C program, C++, Programming, undefined behavior
3 Comments
Detect Endianness of a System
In a previous post “Little and Big Endian conversion” i have briefly discussed about the Big-Endian and the Little-Endian representations. It is the ordering of the bytes (elementary addressable elements) within the representation of a larger basic data type. These … Continue reading
C Q&A #3: When ((x == x + 5) && (y != y)) is true.
The post heading gives an expression which is a contradiction and not possible. In general yes it is a contradiction, but can you write a code such that the below code prints “Hello World.” ?
Get sorted index orderting of an array
Yesterday i was translating some code i wrote in R to C++. I had some calculation to do which required the list of index of the top n values in a list. Therefore what i needed was not a the … Continue reading
Posted in C Language, Coding Discussions, Computer Science
Tagged C program, C++, Programming, workflow
Leave a comment
C Q&A #2: Watch your shift!
What do you this should be the output of the below code? Is there any problem in the code?
C Q&A #1: How many bits are there in a byte?
The question is simple: How many bits are there in a byte. But the answer is not that straight, there is a “but” after the answer we all know.






