No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi there, Here's a basic question from the basics of C. Woukd like to know the use of appending L or UL at the end of integer constant which is assigned to an unsigned int type variable. for eg: on a 32-bit machine unsigned int i; i= 543727232UL; what way … |
|
Hi there, [CODE] #include<stdio.h> main() { int i; i=1,2,3; printf("Value of i with assignment as i=1,2,3 is %d\n", i); i=(1,2),3; printf("Value of i with assignment as i=(1,2),3 is %d\n", i); i=1,(2,3); printf("Value of i with assignment as i=1,(2,3)is %d\n", i); i=(1,2,3); printf("Value of i with assignment as i=(1,2,3) is %d\n", … |
|
[CODE=c] /*main.c*/ #include<stdio.h> extern void func(void); main() { extern int i; printf("i in main %d\n",i); printf("Call to func before modifying i in main...\n"); func(); i=66; printf("Call to func after modifying i in main to 66..\n"); func(); getchar(); } /*file1.c*/ char i=65; void func(void) { printf("i in func %c\n",i); } [/CODE] … |
|
Request for following excerpt's explanation. [URL="http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm"]http://publib.boulder.ibm.com/infocenter/lnxpcomp/v8v101/index.jsp?topic=/com.ibm.xlcpp8l.doc/language/ref/param_decl.htm[/URL] [QUOTE]Except in certain contexts, an unsubscripted array name (for example, region instead of region[4]) represents a pointer whose value is the address of the first element of the array, provided that the array has previously been declared. An array type in the parameter list … |