typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a :
a) Union
b) User defined type
c) Enumerated variable
d) none
What is #define in c?
What are the average number of comparisons required to sort 3 elements?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
read a number & print all its devisors using c-program?
Write a program to find factorial of a number using recursive function.
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
What are logical errors and how does it differ from syntax errors?
What is the diffrent between while and do while statement ?
what is the output of the following program? main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
#include<string.h> void main() { String s1[]={"swathi"}; string s2[]={"maddimsetti"}; s1[]=s[]; printf("%s",s1[]); }
What is true about the following C Functions a.Need not return any value b.Should always return an integer c.Should always return a float d.Should always return more than one value.
What is a built-in function in C?