Hi...Zuk
could you give an explanation for the above ...:confused::confused::confused:
Type: Posts; User: amzc
Hi...Zuk
could you give an explanation for the above ...:confused::confused::confused:
Hi...
how I can create a structure that pointing to another different structure. And also passing structure to function.
thank you.
my last qus is ....
#include <stdio.h>
void foo(int[][3]);
@ salem: not the same qus..it is different. I know its output but i can't understand why like that.....?
#include <stdio.h>
void f1(int*, int);
void f2(int*, int);
void (*p[2])(int*, int);
int main(void)
{
int a = 3;
int b = 5;
p[0] = f1;
p[1] = f2;
how it comes...?
#include void foo(int[][3]);int main(void){ int a[3][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; foo(a); printf("%d\n", a[2][1]); return 0;}void foo(int b[][3]){ ++b; ...
void main()
{
extern char a[30];
}
How much array a is reserving memory space? how?
@rogster001 :Ohh I am really sorry i can't able to understand your code because I don't know c++...:D
@rogster001 : I can do that simple programs but I can't do it in some data structures like tree traversal , link lint reverse ... but I can done it in iterative method.
hai...
I couldn't able to understand recursion programs. so please suggest me any way to improve my recursion programming skill..
thank you..
*scan_array or *scan_array[number] or *scan_array+number - you can access the value of that address
scan_array - is a pointer variable
And one important thing is use typedef to save your coding time.....:D
trial =(struct randomstruct *) malloc(sizeof(struct node));
malloc() always return void pointer so you should type cast it in to your struct pointer.....
@ twomaers : But I want to do it in no extra space. which means use only those str1 and str2 variables only....
strcpy( concat + strlen(s1), s2 );
@ twomaers: I can't able to understand.... could you explain the process....
#include<stdio.h>
#include<stdlib.h>
void con(char*,char*);
int len(char*);
char s[]="xxxxx";
char s2[]="yyyy";
main()
{
char *s1=&s2;
char *s0=&s;
isdigit function...!!
A compressed string is stored in an array of sufficient length. Write a program and its complexity to un-compress the string.
i.e. a3b6c4
1.output:
aaabbbbbbccccc
2.output:
abc346
The...
Write a C program to print all permutations of a given string - GeeksforGeeks | GeeksforGeeks
@salem This what you said....
No... I'll try
Today my instructor ask one qus. to me but really I dont know how to solve that problem. that was a given array contain some elements we have to print it in the way of all possible combinations.
...
#include <stdio.h>
#define FALSE 0
#define NULL 0
typedef struct {
int dataitem;
struct listelement *link;
}listelement;
@laserlight: No...but I have to write it in minimum cast...so that only i ask
In queue Implementation how many pointers are needed to write optimized code ...?:confused::confused:
Thank you
you declare the variables as float but you read integer value(%d) try to change it