what does keyword ‘extern’ mean in a function declaration?
Answer Posted / vadivel t
Extern int a; -> means that, a int variable called 'a;
defined in any of the source file in the project and can be
accessed here in the file using extern declaration.
| Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
What do the functions atoi(), itoa() and gcvt() do?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
write an interactive C program that will encode or decode a line of text.To encode a line of text,proceed as follows. 1.convert each character,including blank spaces,to its ASCII equivalent. 2.Generate a positive random integer.add this integer to the ASCII equivalent of each character.The same random integer will be used for the entire line of text. 3.Suppose that N1 represents the lowest permissible value in the ASCII code,and N2 represents the highest permissible value.If the number obtained in step 2 above(i.e.,the original ASCII equivalent plus the random integer)exceeds N2,then subtract the largest possible multiple of N2 from this number,and add the remainder to N1.Hence the encoded number will always fall between N1 and N2,and will therefore always represent some ASCII character. 4.Dislay the characters that correspond to the encoded ASCII values. The procedure is reversed when decoding a line of text.Be certain,however,that the same random number is used in decodingas was used in encoding.
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
Process by which one bit pattern in to another by bit wise operation is?
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 clrscr ()?
Should a function contain a return statement if it does not return a value?
ATM machine and railway reservation class/object diagram
Why should I prototype a function?
What is difference between %d and %i in c?
Where local variables are stored in c?
What is main () in c language?
What is a pointer and how it is initialized?
What is the c value paradox and how is it explained?