Which version do you prefer of the following two,
1) printf(“%s”,str); // or the more curt one
2) printf(str);
Answer / susie
Answer : & Explanation:
Prefer the first one. If the str contains any format
characters like %d then it will result in a subtle bug.
| Is This Answer Correct ? | 3 Yes | 0 No |
Printf can be implemented by using __________ list.
how to check whether a linked list is circular.
main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }
main() { char *cptr,c; void *vptr,v; c=10; v=0; cptr=&c; vptr=&v; printf("%c%v",c,v); }
write a program for area of circumference of shapes
write a program to Insert in a sorted list
main() { extern i; printf("%d\n",i); { int i=20; printf("%d\n",i); } }
void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }
write a c program to Create employee record by taking details like name, employee id, address and phone number. While taking the phone number, take either landline or mobile number. Ensure that the phone numbers of the employee are unique. Also display all the details
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
plz send me all data structure related programs
Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.