by: Cheng Mo |
last post by:
I tried in g++
sizeof(int*)
siezof(long*)
sizeof(Foo*)//Foo is a self-defined class
They all has same size. Do all pointers have same size in a given
platform with given compiler?
Thanks &...
|
by: theAnswer |
last post by:
hello,
Is there a way to implement a little function to return the size of an array
(not a string)?
Something like int size(int *array)
thanx
|
by: mandark_br |
last post by:
I have a function that returns a int pointer to a allocated memory.
How I know the size of this allocated memory?
Compiler = gcc
Ex.:
int main(void)
{
|
by: Neo |
last post by:
Hi Folks,
I've a simple qestion related to dynamic memory allocation in C here is the
code:
#include <stdio.h>
int main()
{
|
by: bilbothebagginsbab5 AT freenet DOT de |
last post by:
Hello, hello.
So. I've read what I could find on google(groups) for this, also the faq of
comp.lang.c.
But still I do not understand why there is not standard method to "(...)
query the...
|
by: Sontu |
last post by:
Consider the following code:
int main(void)
{
char buffer;
func(buffer);
}
void func(char *bufpas)
{
|
by: serrand |
last post by:
Hello all,
i wonder if we can know the size of a variable from a pointer :
static void *my_free_hook (void *ptr, const void *caller)
{
size_t sz;
/* bla bla bla */
/* HOW CAN I DETERMINE...
|
by: Vasileios Zografos |
last post by:
Hi everyone,
I need to build a function to plug it in a program (that I didnt make or
can change) that should be called something like this:
float someFunction(float x)
{
...
|
by: Kenneth Brody |
last post by:
I looked at my copy of n1124, and I didn't see anything about this
particular situation...
What happens if you realloc() to a size of zero?
Implementations are allowed to return NULL on...
|
by: Adam Chapman |
last post by:
Hi,
Im trying to migrate from programming in Matlab over to C. Im trying
to make a simple function to multiply one matrix by the other. I've
realised that C can't determine the size of a 2d...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|