What is a dynamic array in c?
No Answer is Posted For this Question
Be the First to Post Answer
What are the application of void data type in c?
from which concept of 'c', the static member function of 'c++' has came?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Binary tree traversing
Differentiate b/w Modify and Update commands giving example.
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
define c
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.
What are register variables? What are the advantage of using register variables?
How can I copy just a portion of a string?
Why is c used in embedded systems?
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these