syntax « binary « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » binary » syntax 

1. C syntax or binary optimized syntax?    stackoverflow.com

Let's take a simple example of two lines supposedly doing the same thing: if (value >= 128 || value < 0) ... or if (value & ~ 127) ... Say 'If's are costly in a loop ...

2. Binary adress book-minor syntax -- mitola    bytes.com

#include #include #include struct oseba { char ime[20]; char priimek[15]; char ulica[50]; char mesto[50]; char tel_st[10]; short ucni_uspeh; }pod; void vnos(struct oseba pod,FILE *fd) { printf("Vnesi ime: "); scanf("%s",pod.ime); printf("Vnesi priimek: "); scanf("%s",pod.priimek); printf("Vnesi ucni uspeh: "); scanf("%d",&pod.ucni_uspeh); printf("Vnesi ulico in st.: "); fgets(pod.ulica,100,fd); //scanf("%s",pod.ulica); printf("Vnesi ime mesta: "); scanf("%s",pod.mesto); printf("Vnesi tel st: "); scanf("%s",pod.tel_st); fd=fopen("DIJAKI.BIN","a"); fwrite(&pod,sizeof(pod),1,fd); fclose(fd); ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.