Is there a shell for quickly experimenting in C? [duplicate] - c

This question already has answers here:
Is there an interpreter for C? [closed]
(13 answers)
Closed 7 years ago.
I'm not looking for csh, I'm looking for a shell for C similar to the Python or the Scala shells.
I understand that C is a compiled language, but is there anything out there that would let me quickly play around with things so I can e.g. better learn how pointers work? It should at least be theoretically possible to do this, wondering if anyone has taken the time to implement it.

As you well know that C is a compiled language. It is better to write C code than compile it, do some breakpoints, learn what value is in memory, where the pointer points etc.
But I think you mean this. Is there an interpreter for C?

Related

difficulty in understanding how pointers work in c [duplicate]

This question already has answers here:
What are the barriers to understanding pointers and what can be done to overcome them? [closed]
(28 answers)
Closed 5 years ago.
I am learning c language for over a year now. But I still don't understand how pointers work. Can anyone suggest a good online resource to make concepts clear.
There is vast number of sources regarding C pointers. You can google for it. Try to read a few, one of them may just click.
Here just few which I like:
https://boredzo.org/pointers/
https://en.wikibooks.org/wiki/C_Programming/Pointers_and_arrays
https://users.cs.cf.ac.uk/Dave.Marshall/C/node10.html
https://en.wikipedia.org/wiki/Pointer_(computer_programming)
https://www.geeksforgeeks.org/function-pointer-in-c/
If you are clear with your concepts of pointers in one language, it would mean that you are clear in all possible programming languages as it is one of the most fundamental concepts.
Geeks for Geeks : More reliable source to clear basic concepts
https://www.geeksforgeeks.org/pointers-in-c-and-c-set-1-introduction-arithmetic-and-array/
Hackerrank is a good source for practical knowledge
https://www.hackerrank.com/challenges/c-tutorial-pointer/problem
Tutorials Point is yet another saviour
https://www.tutorialspoint.com/cprogramming/c_pointers.htm

fortran function to find available file unit [duplicate]

This question already has answers here:
getting free unit number in fortran
(2 answers)
Closed 7 years ago.
I can write a FORTRAN function to find an available file unit, but I was certain there was already an intrinsic. But if there is, I can't find anything about it. Is there such a thing or am I dreaming?
UPDATE: Apologies for the duplicate. Did a search, but it didn't show up.
I guess, you are looking for newunit (available with F2008, shown at the bottom of that link in the Fortran Wiki).
Ups, has already been answered.
maybe you were thinking of inquire?

Datatype which can store very large value in C [duplicate]

This question already has answers here:
Are there any solid large integer implementations in C? [closed]
(7 answers)
Closed 8 years ago.
Recently in programming contest in Here, the problem is pretty straight forward but catch is with worst case scenario which we have to handle data of size 10^10000 .
I tried the program in python which is straight forward as i don't have to specify the datatype(It is taken care by the compiler ) but when i tried with C I couldn't find the correct datatype .
(I tried uintmax_t which didn't work out too).
So how to approach very huge type of data's in C ?
There is no built-in datatype in C that can store that big values. You will either have to write your own implementation or use a library. As this is a competition, though the second is not an option. Every now and then similar problems appear and usually the best approach is to use another language e.g. java(as it is usually available on competitions).

std::unordered_set(int) container library for C [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
C equivalent of C++ STL
I am writing a program in C due to memory constraints on an embedded system. I need a std::unordered_set<int> to implement my algorithm. What STL-like libraries exist for C? If there isn't one which implements std::unordered_set<int> then what container can I use as an alternative?
sglib red black tree container seems to provide what I need.

Concept of function pointers in C? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
What is the point of function pointers?
hi all,
I want to get the basic and concrete idea of function pointers in C language.
ie 1) its usage in C
2) main applications it is currently using
3) unique features
4) its scope in embedded applciations etc
Hoping your co operation in this too.
__Kanu
Function Pointers are pointers, that is variables, which point to the address of a function.
Nice example here. Also this answer is a must read.

Resources