Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct Dima
- {
- int nMin;
- int nHours;
- int nDays;
- }t1, t2;
- /////////////////////////////////////////
- void foo(int n) //
- {
- // t1.nMin =
- }
- /////////////////////////////////////////
- void foo(char *p) //
- {
- printf("address of nArr[0] = %d\n", p); p = p + 1;
- printf("address of nArr[1] = %d\n", p); p ++;
- printf("address of nArr[2] = %d\n", p); p+=1;
- printf("address of nArr[3] = %d, ", p); printf(" nArr[3] = %c \n", p[0]);
- }
- /////////////////////////////////////////
- int main() //
- {
- char nArr[5] = "SONY";
- foo( nArr);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement