Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

C

How does this code generate the map of India?

by IT Nursery

This code prints the map of India. How does it work? #include <stdio.h> main() { int a,b,c; int count = 1; for (b=c=10;a=”- … Read more

Tags c, obfuscation

static function in C

by IT Nursery

What is the point of making a function static in C? Best Answer 7

Tags c, static

Are there any downsides to passing structs by value in C, rather than passing a pointer?

by IT Nursery

Are there any downsides to passing structs by value in C, rather than passing a pointer? If the struct is large, there is … Read more

Tags abi, c, parameter-passing, struct

String literals: Where do they go?

by IT Nursery

I am interested in where string literals get allocated/stored. I did find one intriguing answer here, saying: Defining a string inline actually embeds … Read more

Tags c, memory, string-literals

What does “#define _GNU_SOURCE” imply?

by IT Nursery

Today I had to use the basename() function, and the man 3 basename (here) gave me some strange message: Notes There are two … Read more

Tags c, gnu, posix

Why use bzero over memset?

by IT Nursery

In a Systems Programming class I took this previous semester, we had to implement a basic client/server in C. When initializing the structs, … Read more

Tags c, memset, systems-programming

Setting variable to NULL after free

by IT Nursery

In my company there is a coding rule that says, after freeing any memory, reset the variable to NULL. For example … void … Read more

Tags c, coding-style, free, heap-memory, malloc

What do people find difficult about C pointers? [closed]

by IT Nursery

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, … Read more

Tags c, pointers

Is char signed or unsigned by default?

by IT Nursery

In the book “Complete Reference of C” it is mentioned that char is by default unsigned. But I am trying to verify this … Read more

Tags c, char, signed, types

What does void* mean and how to use it?

by IT Nursery

Today when I was reading others’ code, I saw something like void *func(void* i);, what does this void* mean here for the function … Read more

Tags c
Older posts
Page1 Page2 … Page24 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery