What are the following notations of defining functions known as?
i. int abc(int a,float b)
{
/* some code */
}
ii. int abc(a,b)
int a; float b;
{
/* some code*/
}
Answer / susie
Answer :
i. ANSI C notation
ii. Kernighan & Ritche notation
| Is This Answer Correct ? | 10 Yes | 0 No |
void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }
Is it possible to type a name in command line without ant quotes?
main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); }
What is the hidden bug with the following statement? assert(val++ != 0);
You are given any character string. Find the number of sets of vowels that come in the order of aeiou in the given string. For eg., let the given string be DIPLOMATIC. The answer returned must be "The number of sets is 2" and "The sets are "IO and AI". Vowels that form a singleton set must be neglected. Try to post the program executable in gcc or g++ or in java.
how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.
0 Answers Mbarara University of Science and Technology,
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
9 Answers CSC, GoDB Tech, IBM,
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(“%d”, i); }
main() { char *p; printf("%d %d ",sizeof(*p),sizeof(p)); }