Skip to content
SoftPrayog
  • Home
  • Programming
  • Tutorials
  • Videos
  • Software Engineering
  • Troubleshooting
Menu Close
  • Home
  • Programming
  • Tutorials
  • Videos
  • Software Engineering
  • Troubleshooting

C

Program to find the day of the week for a given date

  • Post author:Karunesh Johri
  • Post published:November 11, 2023
  • Post category:Programming

1.0 Day of Week The Gregorian calendar was adopted in 1582. The formula to find the day of the week for any date after 1582 is, d = N +…

Continue ReadingProgram to find the day of the week for a given date
Read more about the article C Programming Tutorial 5: Structures and Unions

C Programming Tutorial 5: Structures and Unions

  • Post author:Karunesh Johri
  • Post published:December 7, 2020
  • Post category:Programming
  • Post comments:0 Comments

1.0 Structures A structure, in the C programming language, is a collection of variables for an entity. The variables are known as members of the structure and are located at…

Continue ReadingC Programming Tutorial 5: Structures and Unions
Read more about the article C Programming Tutorial 4: Pointers and Arrays

C Programming Tutorial 4: Pointers and Arrays

  • Post author:Karunesh Johri
  • Post published:November 9, 2020
  • Post category:Programming
  • Post comments:0 Comments

1.0 Introduction A pointer variable holds the address of another variable. It is said to be "pointing" to that variable. For example, int *ip; defines a variable ip of type…

Continue ReadingC Programming Tutorial 4: Pointers and Arrays
Read more about the article C Programming Tutorial 3: Control Flow and Functions

C Programming Tutorial 3: Control Flow and Functions

  • Post author:Karunesh Johri
  • Post published:October 8, 2020
  • Post category:Programming
  • Post comments:0 Comments

1.0 Introduction A C program comprises of global data and functions. A program must have a main function and the execution starts at the first statement in the main function.…

Continue ReadingC Programming Tutorial 3: Control Flow and Functions
Read more about the article C Programming Tutorial 2: Data Types and Expressions

C Programming Tutorial 2: Data Types and Expressions

  • Post author:Karunesh Johri
  • Post published:September 13, 2020
  • Post category:Programming
  • Post comments:0 Comments

1.0 Introduction Data is an important part of a program. In fact, programs are written so that data can be captured, processed, stored and presented to the user. The success…

Continue ReadingC Programming Tutorial 2: Data Types and Expressions
Read more about the article C Programming Tutorial 1 – Getting Started

C Programming Tutorial 1 – Getting Started

  • Post author:Karunesh Johri
  • Post published:August 23, 2020
  • Post category:Programming
  • Post comments:0 Comments

1.0 Introduction C is a procedural programming language invented by Dennis Ritchie in 1972. C is, possibly, the most widely used programming language in the last fifty years. There are…

Continue ReadingC Programming Tutorial 1 – Getting Started
Read more about the article How to trim a string in C

How to trim a string in C

  • Post author:Karunesh Johri
  • Post published:February 2, 2019
  • Post category:Programming
  • Post comments:0 Comments

The problem of removing leading and trailing whitespace characters in strings occurs in programming quite often. Here is a solution. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> void trim…

Continue ReadingHow to trim a string in C
Read more about the article Queue implementation in C using linked list

Queue implementation in C using linked list

  • Post author:Karunesh Johri
  • Post published:October 3, 2018
  • Post category:Programming
  • Post comments:0 Comments

1.0 Queue A queue is something we see often in our daily lives. People stand in a queue to get into a bus, to get food in a buffet, buy…

Continue ReadingQueue implementation in C using linked list
Read more about the article Gtk-WARNING **: cannot open display:

Gtk-WARNING **: cannot open display:

  • Post author:Karunesh Johri
  • Post published:September 22, 2018
  • Post category:Troubleshooting

While running a GTK+ based C program under Cygwin, the following runtime error is observed, Gtk-WARNING **: cannot open display: SOLUTION Make sure that Cygwin/XServer is installed and is running.…

Continue ReadingGtk-WARNING **: cannot open display:
Read more about the article cygwin1.dll not found

cygwin1.dll not found

  • Post author:Karunesh Johri
  • Post published:September 22, 2018
  • Post category:Troubleshooting

A C program was compiled under Cygwin and run directly under Windows. The following runtime error was observed, cygwin1.dll not found SOLUTION Make sure that the environment variable, PATH, has…

Continue Readingcygwin1.dll not found
Subscribe to SoftPrayog on YouTube

Video Series

  • Linux System Programming
  • Linux Commands
  • C Programming

Recent Posts

  • Program to find the day of the week for a given date
  • Flex Tutorial
  • Process synchronization
  • Regular Expressions in C
  • vi not showing color syntax highlighting in Ubuntu Linux

Popular Posts

  • System V message queues in Linux
  • POSIX Semaphores in Linux
  • POSIX message queues in Linux
  • POSIX Threads Synchronization in C
  • POSIX Shared Memory in Linux
  • Gtk-WARNING **: cannot open display:
  • Network Traffic Control with tc command in Linux
  • D-Bus Tutorial
  • Regular Expressions in C
  • Connecting two computers with Ethernet LAN cable

Email Newsletter

Loading
Web Store
About
Subscribe
Contact Us
Privacy Policy
Terms of service
SoftPrayog on Facebook        SoftPrayog on Twitter         SoftPrayog on Telegram
Copyright © 2023 Karunesh Johri. All Rights reserved.