Include
Include
h>
#include <malloc.h>
int val;
struct Node *next;
}Node;
if(head == NULL){
head = newNode;
}
else{
while(dummy->next != NULL){
dummy = dummy->next;
}
dummy->next = newNode;
}
while(dummy != NULL){
if(dummy->val == number) number++;
dummy = dummy->next;
}
while(dummy != NULL){
if(dummy->val == number){
prev->next = dummy->next;
free(dummy);
dummy = prev->next;
}
else{
prev = prev->next;
dummy = dummy->next;
}
if(head == NULL){
return NULL;
}
if(head->val != number){
head->next = newList;
return head;
}
free(head);
return newList;
// }
int main(){
if( i % 2 == 0){
Gay->val = 2;
}
else{
Gay->val = 1;
puts("Gay");
}
dummy->next = Gay;
dummy = dummy->next;
dummy->next = NULL;
print(head);
return 0;
}
#include <stdio.h>
#include <malloc.h>
int *readDims(){
int rows = 0;
printf("Number of rows : ");
scanf("%d", &rows);
printf("%d\n", rows);
int cols = 0;
printf("Number of cols : ");
scanf("%d", &cols);
printf("%d\n", cols);
return dim;
float *createMat(){
int *A = readDims();
int rows = *(A + 0);
int cols = *(A + 1);
printf("%d\n", rows);
printf("%d\n", cols);
return matrix;
}
return mat3;
int *A = readDims();
int rows = *(A + 0);
int cols = *(A + 1);
int main(){
return 0;