Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 239786

C is a general-purpose computer programming language used for operating systems, games, and other high performance work and is clearly distinct from C++. It was developed in 1972 by Dennis Ritchie for use with the Unix operating system.

0 votes
2 answers
39 views

Abbreviating a name

This is a question from a CS diploma question set : Make a program that will create an abbreviation of any given name using the initials. For example if the name if "John Doe", the program will outpu …
debdutdeb's user avatar
0 votes
1 answer
110 views

Create a two dimensional int array and find the smallest and biggest member along with the i...

From a CS Diploma course question set: Create a two dimensional array of ints, fill it with any random integers. Now find the minimum and maximum number, also find the index of those numbers. I was …
debdutdeb's user avatar
5 votes
3 answers
117 views

C function that emulates string concatenation operator '+' in Python or Go

I'm working on a project of mine which required multiple calls to strncat(), and it came to me that it'd have been much easier if C also had something like "file://" + getenv("HOME") + filename for string … *ptr; while ((c = va_arg(argv, char*))) { nmemb = strlen (c); realsize += nmemb; ptr = realloc (return_string, sizeof(char) * (realsize + 1)); if (! …
debdutdeb's user avatar
1 vote
2 answers
905 views

A [non-destructive] better (not really) `strtok` function

The first time I used strtok, it felt, well, weird. But after a while, I became quite used to it. In a way it was simple. Soon after reading a bunch of Stack Overflow comments and posts about this fun …
debdutdeb's user avatar