It looks like a cast of var1 to be a pointer of type pointer to var.
this is what it is
can you explain this? above in more laymen terms
Type: Posts; User: amahmoo
It looks like a cast of var1 to be a pointer of type pointer to var.
this is what it is
can you explain this? above in more laymen terms
(var *) var1
can someone explain to me whats happening above
no its not i need test_obj to equal to something but not null
typedef struct
{
int a =1;
}
test_struct;
test_struct *test_obj = NULL;
int main ()
test(uint8_t *a)
{
return 0;
}
int main()
{
int b;
test(&b);
Can someone give me a brief how to us pointer with structs and arrays and using pointers with void as a parameter in a function.
also i am confused on how function pointers work.? can some one...
thank you this is what i needed to know i appreciate it so much love you laserlight
I am programming in c
look i didn't mean what you think doesn't matter. What you say does matter. I am sorry i didn't mean to sound that way also its my fault i am not clear in what i am asking is becase i dont understand...
i am just trying to set a to 1 using the following code up there its from my hw he told us to do it this way it doesnt matter what you think is semantically correct he just doing it to think...
I need the union there i need to do this for my hw for school laserlight can you help?
#include <iostream>
using namespace std;
typedef struct
{
typedef struct
{
int a;
}struct_ex
typedef struct example_1
{
the_struct is a normal struct
typedef void(*ptest)( the_struct * Pthe_struct)
Can some explain this to me what going on above
#include <iostream>
#include <stdio.h>
using namespace std;
void hi()
{
printf("Hi, there!\n");
can you show me how i should call the examples i put up
How do i call void functions
I know what they are I just get confused I put some examples i dont understand that well. How would i set a return to them and how would i call them. I just am looking...
typedef struct
{
int inst;
void * t1;
} Dip;
int main()
{
Dip req;
int a;
i still dont understand why can you just show me how to do it how will it affect you
he wanted me to use
typedef struct
{
int inst;
void * t1;
} Dip;
instruction: assign t1 to 1
professor told me
he told me i need to assign adress to void *t1 in struct
i need to pass adress to struct that adress hold a value of 1
req-> unsigned int t1 =1;?
also operation is going to involve casting
your causing pointer to point to that object