I've a big char array,
char big[100000];
And a small array in a node of a linked list:
Type: Posts; User: sangamesh
I've a big char array,
char big[100000];
And a small array in a node of a linked list:
Hi,
How to get the functionality/features of calloc with malloc function. i.e. is there additional function available in C, that allows:
calloc = malloc + additional function...
Ok. Thanks.
If the program is using a pointer to strutcure, why it gives error if value is assigned directly to struct elements, as follows?
#include<stdio.h>
typedef struct
Hi,
In the following program, the structure "Root" is defined globally. Pointer to this structure gives compilation error.
#include<stdio.h>
typedef struct
Hi,
Wrt the openmp constructs parallel and work-share, how the following constructs work:
1) #pragma omp for
2) #pragma omp parallel for
Hi,
A sample program using POSIX threads (with basic pthread functions) runs well perfectly for 1 thread/2 threads. But for more than 2 threads it fails with Segmentation fault.
The...
Hi All,
Is there any tool/software to do designing of a large software(which involve multiple modules & submodules) development? Its purpose should be to interlink all the modules of the...
Hi,
I've a two-dimensional character array, initialized as follows:
char *valid_help_str[] = {{"help"},{"help add queue"},{"help add queue default"},{"help add queue basic"},{"help...
The strcmp function is used in the following way:
The char array contains set of strings.
char* help_str[] = {"help","help one","help one two", "help one two three", "help one two three...
Compiled with "-g" option:
icc -g lsub.c -o lsubg
This is the output of gdb:
Hi,
I've the following code in main() function.. The scanf is written to read multiple strings in a single array of char:
-----
--
else
{
printf("\n\n...
Thanks fronty for your suggestion. Its working with the function getuid(). Is root's uid (0) same in all linux flavours?
Also can some one let's know, why length of ch is 5? why not 4? :confused:
Hi,
The following C program on Linux, does a set of operations based on whether user is "root" or an ordinary user.
Using popen() function, I've tried to manipulate Linux cmd output...
Thank you all for your valuable responses. And I'm very sorry for the late response, I was on vacation.
Collectively, I understand that GUI devel in C++ is not suggestable. I forgot to mention, my...
Dear C++ programmers,
For developing GUI application in C++, which additional library/framework (free) is required Or C++ itself has any graphics development libraries? I mean, a library...
Dear all,
I've to develop a software, which works on the data taken from Linux shell commands. For example: manipulation of the output of ifconfig command into C/C++ program. How this can...
The call readmat(&b]) certainly should bring about an error from your compiler. You really should copy and paste code, and not just re-type it. You've got a good chance of introducing errors if you...
Hi,
The below program does some operations on multiple matrices. For reading these multiple matrices, am using a function readmat().
#include<stdio.h>
void readmat(int *a)
{
...