A global variable when referred to in another file is declared as this
a) local variable
b) external variable
c) constant
d) pointers
No Answer is Posted For this Question
Be the First to Post Answer
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); }
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }
22 Answers NDS, TCS,
Binary tree traversing
What is 'bus error'?
What are the types of pointers?
6. Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
what is ANSI and ISO
write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]
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?
i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) { k+=j<10?4:3; } printf("%d", k);
Explain what are the standard predefined macros?