|
struct Books {
|
struct Books Book1;
|
|
char title[50];
|
strcpy( Book2.title, "Telecom Billing");
|
|
char author[50];
|
strcpy
|
|
char subject[100];
|
dest − This is the pointer to the destination array where the content is to be copied.
|
|
int book_id;
|
src − This is the string to be copied.
|
|
} book;
|
|
|
fopen() create a new file or open a existing file
|
a opens a text file in append mode
|
|
fclose() closes a file
|
w opens or create a text file in writing mode.
|
|
getc() reads a character from a file
|
r opens a text file in reading mode
|
|
putc() writes a character to a file
|
|
|
fscanf() reads a set of data from a file
|
|
|
fprintf() writes a set of data to a file
|
|
|
&
|
Binary AND Operator copies a bit to the result if it exists in both operands.
|
(A & B) will give 12 which is 0000 1100
|
|
|
|
Binary OR Operator copies a bit if it exists in eather operand.
|
(A | B) will give 61 which is 0011 1101
|
|
^
|
Binary XOR Operator copies the bit if it is set in one operand but not both.
|
(A ^ B) will give 49 which is 0011 0001
|
|
~
|
Binary Ones Complement Operator is unary and has the efect of 'flipping' bits.
|
(~A ) will give -60 which is 1100 0011
|
|
<<
|
Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.
|
A << 2 will give 240 which is 1111 0000
|
|
char p[] = "hello"
|
char *p = "hello"
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.