Can you please explain the difference between syntax vs logical error?
Answer / Rajat Kumar Tyagi
A syntax error is a mistake in the structure or formatting of your code that prevents it from being parsed correctly by the compiler. A logical error, on the other hand, occurs when your program runs but produces incorrect results due to errors in the logic or flow control.
| Is This Answer Correct ? | 0 Yes | 0 No |
What does the && operator do in a program code?
write a C program : To find out the number of identical words in two files . the file name should be taken as command line argument .
Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2)
what is the disadvantage of using macros?
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); }
Find greatest of two numbers using macro
Explain how can I convert a string to a number?
Does sprintf put null character?
What will be printed as the result of the operation below: #include<..> int x; int modifyvalue() { return(x+=10); } int changevalue(int x) { return(x+=1); } void main() { int x=10; x++; changevalue(x); x++; modifyvalue(); printf("First output:%d\n",x); x++; changevalue(x); printf("Second output:%d\n",x); modifyvalue(); printf("Third output:%d\n",x); }
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
write a c program that prints all multiples of 3between 1 and 50.
what is pointer