#include <stdio.h>
#includ

Loading

Practice Pointers –

#include <stdio.h>
#include <malloc.h>
#define NULL 0
int main(){
struct node{
int data;
struct node *link;
};
struct node *p,*q;
p=(struct node *) malloc(sizeof (struct node));
q=(struct node *) malloc(sizeof (struct node));
p->data=30;
p->link=q;
q->data=40;
q->link=NULL;
printf("%d ",p->data);
p=p->link;
printf("%d ",p->data);
return 0;
}

#include <stdio.h>
#includ

Loading

Practice Functions –

#include <stdio.h>
#include <stdarg.h>
void fun(char *msg, ...);
int main() {
fun("Hello", 1, 4, 7, 11);
return 0;
}
void fun(char *msg,...) {
int num;
va_list ptr;
va_start(ptr, msg);
num = va_arg(ptr, int);
num = va_arg(ptr, int);
printf("%d", num);
}