1. The address of variables stored in data segment never changes. 2. All the functions are allocated memory in data segments whether it is defined inside main(locally) or outside main(globally). 3. Initialized global variables are stored in data segment, UN-initialized … Continue reading
In which segment does a command line argument goes…??
Message queues with multiple client server implemented
#include #define max(a,c,b) a=(b>c)?b:c void max1(int,int,int); int main() { int a=1,c=5,b=4; max(a,c++,b++);//It will make b=5 and c=7.. ?? printf(“By Macro %d\n”,a); printf(“now a= %d\nb= %d\nc=%d\n”,a,b,c); max1(a,b++,c++); return 0; } void max1(int a,int b,int c) { a=(b>c)?b:c; printf(“%d \n”,a); }
int main(int argc,char *argv[]) why size of string which each pointer in argv[] array point is of 4 bytes irrespective of sizeof string??
int num = 10; ptr = malloc(sizeof(int)* number); if memory is allocated like this then the any input statement(scanf,gets,fgets) is not running , compiler jumps these stmts whyyy??
NODE *start : pointer pointing to starting of link list. after free(start) how compiler is accessing whole link list??
Pointers assignment almost complete with two three problems
when using strlwr and strupr, error come “undefined reference to strupr” i have used #include<string.h> but of no use what to do now?
Shell Script assignment 2 now completed and uploaded
if i write while(1) { i=(int *)malloc(sizeof(int)); } here each location will be assigned to i after 16 addresses. But why…??? o_O
when using strlwr and strupr, error come “undefined reference to strupr” i have used #include<string.h> but of no use what to do now?
while((c=getchar())==’\n’); NOTE that there is a semicolon at the end.
Shell assignment 1,2 complete. C assignment 1,2,3,4 complete. Facing some problem in string manipualtion in one question. Thank you