main()
{
clrscr();
}
clrscr();
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
No output/error
Explanation:
The first clrscr() occurs inside a function. So it becomes a
function call. In the second clrscr(); is a function
declaration (because it is not inside any function).
| Is This Answer Correct ? | 4 Yes | 0 No |
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.
5 Answers IITR, Microsoft, Nike,
main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcat(a,b)); } a. Hello b. Hello World c. HelloWorld d. None of the above
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
#include<stdio.h> int main() { int a=3,post,pre; post= a++ * a++ * a++; a=3; pre= ++a * ++a * ++a; printf("post=%d pre=%d",post,pre); return 0; }
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
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
What are segment and offset addresses?
main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;
Code for 1>"ascii to string" 2>"string to ascii"
1 Answers Aricent, Global Logic,
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }