Can you please explain the difference between syntax vs logical error?
No Answer is Posted For this Question
Be the First to Post Answer
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 shell structures used for?
what is dangling pointer?
what is the function of void main()?
what is the diff b/w static and non static variables in C. Give some examples plz.
An array name contains base address of the array. Can we change the base address of the array?
How can you tell whether two strings are the same?
Can the curly brackets { } be used to enclose a single line of code?
what is the use of operator ^ in C ? and how it works?
What are pointers in C? Give an example where to illustrate their significance.
What is use of #include in c?
What is pointer & why it is used?