Why do we use static in c?
No Answer is Posted For this Question
Be the First to Post Answer
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
why do some people write if(0 == x) instead of if(x == 0)?
Explain the advantages of using macro in c language?
What is difference between %d and %i in c?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Write programs for String Reversal & Palindrome check
Explain what are global variables and explain how do you declare them?
What is the size of structure pointer in c?
write a function to swap an array a[5] elements like a[0] as a[5],a[1] as a[4],....a[5] as a[0].without using more than one loop and use one array not to use temp array?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is macro?