How is pointer initialized in c?
No Answer is Posted For this Question
Be the First to Post Answer
what is the importance of spanning tree?
What is self-referential structure in c programming?
What will be the result of the following program? char*g() { static char x[1024]; return x; } main() { char*g1="First String"; strcpy(g(),g1); g1=g(); strcpy(g1,"Second String"); printf("Answer is:%s", g()); } (A) Answer is: First String (B) Answer is: Second String (C) Run time Error/Core Dump (D) None of these
what is pointer?
13 Answers HCL, TCS,
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is c language and why we use it?
What are predefined functions in c?
if function is declared as static in one source file, if I would like to use the same function in some other source file...is it possible....how ?
Are global variables static in c?
What are global variables and explain how do you declare them?
The C language terminator is a.semicolon b.colon c.period d.exclamation mark
main() { int a,b; printf("%d,%d",scanf("%d%d",&a,&b)); } => do u mean above program's output... =>output will be:2,whatever you enter value for b. =>because scanf is a library fn which will return how many arguements it processes, and second value you are right mr.Satya but i found my self unable to understand that for the first time scanf returns the no of successful matches but how for the second time it returns the value of 'b'.while a function should return the same 'r' value every time.