typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a :
a) Union
b) User defined type
c) Enumerated variable
d) none
No Answer is Posted For this Question
Be the First to Post Answer
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); }
Explain the term printf() and scanf() used in c language?
how to print 2-D array using a single for loop?
2 Answers Mind Tree, TCS, Value Labs,
Did c have any year 2000 problems?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
c program for searching a student details among 10 student details
Who invented bcpl language?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
why program counter is 16 bit?
how do you redirect stdout value from a program to a file?
What is type qualifiers?
There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?