Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Practice
//create an array of all structures //due by next thursday /*ARRAYS AND POINTERS ARE THE SAME #include <stdio.h> #include <string.h> int main(void) { int i, n; char *x = "girl"; n = strlen(x); printf("%s\n",x); for(i=0; i<n;++i) printf("%c\n",x[i]); } */ //o++=p //str1=s(=a) and a++=b //148 is the bit value of both numbers /*#include <stdio.h> int main(void) { char *p,*str,*str1; char s[]={'A', 'E', 'I', 'O', 'U','\0'}; p=&s[3]; str=p; str1=s; printf("%c\n",++*p ); printf("%c\n",++*str1); printf("%d",++*p + ++*str1); } */ //p is equal to the first one initially /* #include <stdio.h> int main(void) { int myarr[ ]={20,80,300,400,14,16,99,88}; int j,*p=myarr,*q=myarr+8; for(j=0;j<sizeof(myarr)/4;j++) { printf(" %d ", *(p+j)); } p=myarr+sizeof(myarr)/4; printf("\n--------------------------------\n"); for(j=0; j<sizeof(myarr)/4;j++){ printf(" %d ", *(p-j-1)); } } */ /* #include <stdio.h> int main(void) { int num =0; for (num=1; num <= 30; num +=4){ if (num % 3 == 0) printf("%d\n",num); } } */ #include <stdio.h> void main() { typedef struct { char c; float d; } mystruct; typedef struct { int a[3]; char b; mystruct foo; } allstruct; allstruct somethingnew ={{1,2,3},'P','q',1.4}; printf("%d\n%d\n%d\n%c\n%c\n%f",somethingnew.a[0+0], somethingnew.a[1], somethingnew.a[2+0], somethingnew.b,somethingnew.foo.c, somethingnew.foo.d); }
run
|
edit
|
history
|
help
0
ALPAHABET PATTERNS
Practice Problem 7
Practica 5 ejercicio beneficio empresa
a1
2.3 Comparision with Matrix Multiplication Execution Time
Finding the second largets value v0.6
string.c
C_141127:MatricesUnSoloIndice
tickeParsing.c
ques.1