tag:blogger.com,1999:blog-1042680598466378597.post178854093963735983..comments2016-10-08T05:06:35.492-07:00Comments on Srikant: Anonymoushttp://www.blogger.com/profile/07243853788252419594noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1042680598466378597.post-4202343925413268832016-10-08T05:06:35.492-07:002016-10-08T05:06:35.492-07:00Frequently asked c programs in interview
1. Write ...Frequently asked c programs in interview<br />1. Write a c program to check given number is perfect number or not.<br />2. Write a c program to check given number is Armstrong number or not.<br />3. Write a c program to check given number is prime number or not.<br />4. Write a c program to check given number is strong number or not.<br />5. C program to check a number is odd or even.<br />6. Write a c program to check given number is palindrome number or not.<br />8. Write a c program to check given string is palindrome number or not.<br />7. Write a c program to solve quadratic equation.<br />8. Write a c program to print Fibonacci series of given range.<br />9. Write a c program to get factorial of given number.<br />10. Write a c program for Floyd’s triangle.<br />11. Write a c program to print Pascal triangle.<br />12. Write a c program to generate multiplication table.<br />13. Write a c program to print ASCII value of all characters.<br />14. C program to print hello world without using semicolon<br />15. Write a c program which produces its own source code as its output<br /><br />For ans refer c questions.com<br />Anonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.comtag:blogger.com,1999:blog-1042680598466378597.post-6557815520762378102016-10-08T05:04:27.106-07:002016-10-08T05:04:27.106-07:00String
1. Write a c program to convert the string...String<br /><br />1. Write a c program to convert the string from upper case to lower case.<br />2. Write a c program to convert the string from lower case to upper case.<br />3. Write a c program to delete the all consonants from given string.<br />4. Write a c program to count the different types of characters in given string.<br />5. Write a c program to sort the characters of a string.<br />6. Write a c program for concatenation two strings without using string.h header file.<br />7. Write a c program to find the length of a string using pointer. <br />8. Write a c program which prints initial of any name.<br />9. Write a c program to print the string from given character.<br />10. Write a c program to reverse a string<br />11. Reverse a string using recursion in c<br />12. String concatenation in c without using strcat<br />13. How to compare two strings in c without using strcmp<br />14. String copy without using strcpy in c<br />15. Convert a string to ASCII in c<br />Anonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.comtag:blogger.com,1999:blog-1042680598466378597.post-62460860814591638762016-10-08T05:03:39.908-07:002016-10-08T05:03:39.908-07:001.#include
void main(){
int a=5,b=10;
c...1.#include<br /> void main(){<br /> int a=5,b=10;<br /> clrscr();<br /> if(a<++a||b<++b)<br /> printf("%d %d",a,b);<br /> else<br /> printf("John Terry");<br />}<br /><br />2. void main(){<br /> char c=256;<br /> char *ptr="Leon";<br /> if(c==0) <br /> while(!c)<br /> if(*ptr++)<br /> printf("%+u",c);<br /> else<br /> break;<br />}<br /><br />3. #include<br />void main(){<br /> int a=2;<br /> if(a--,--a,a)<br /> printf("The Dalai Lama");<br /> else<br /> printf("Jim Rogers");<br />}<br /><br />4.<br />#include<br />void main(){<br /> int movie=1;<br /> switch(movie<<2+movie){<br /> default:printf("3 Idiots");<br /> case 4: printf(" Ghajini");<br /> case 5: printf(" Krrish");<br /> case 8: printf(" Race");<br /> } <br />}<br /><br /><br /><br /><br />5. #define L 10<br />void main(){<br /> auto money=10;<br /> switch(money,money*2){<br /> case L: printf("Willian");<br /> break;<br /> case L*2:printf("Warren");<br /> break;<br /> case L*3:printf("Carlos");<br /> break;<br /> default: printf("Lawrence");<br /> case L*4:printf("Inqvar");<br /> break;<br /> } <br />}<br />6.#include<br />void main(){<br /> int const X=0;<br /> switch(5/4/3){<br /> case X: printf("Clinton");<br /> break;<br /> case X+1:printf("Gandhi");<br /> break;<br /> case X+2:printf("Gates");<br /> break;<br /> default: printf("Brown");<br /> } <br />}<br />7.enum actor{<br /> SeanPenn=5,<br /> AlPacino=-2,<br /> GaryOldman,<br /> EdNorton<br />};<br />void main(){<br /> enum actor a=0;<br /> switch(a){<br /> case SeanPenn: printf("Kevin Spacey");<br /> break;<br /> case AlPacino: printf("Paul Giamatti");<br /> break;<br /> case GaryOldman:printf("Donald Shuterland");<br /> break;<br /> case EdNorton: printf("Johnny Depp");<br /> }}<br />8. #include<br />void main(){<br /> switch(6){<br /> case 6.0f:printf("Sangakkara");<br /> break;<br /> case 6.0: printf("Sehwag");<br /> break;<br /> case 6.0L:printf("Steyn");<br /> break;<br /> default: printf("Smith");<br /> } <br />}<br />9. #include<br />void main(){<br /> switch(0X0){<br /> case NULL:printf("Thierry Henry");<br /> break;<br /> case '\0':printf("Steven Gerrend");<br /> break;<br /> case 0: printf("Kaka");<br /> break;<br /> default: printf("Michael Ballack");<br /> }<br /> <br />}<br />10. #include<br />void main(){<br /> unsigned char c=280;<br /> switch(c){<br /> printf("Start\t");<br /> case 280:printf("David Beckham\t");<br /> case 24: printf("Ronaldinho\t");<br /> default: printf("Ronaldo\t");<br /> printf("End");<br /> }<br /> <br />}<br /><br /><br /><br /><br /><br /><br /><br />11. #include<br />void main(){<br /> static int i;<br /> int j;<br /> for(j=0;j<=5;j+=2)<br /> switch(j){<br /> case 1: i++;break;<br /> case 2: i+=2;<br /> case 4: i%=2;j=-1;continue;<br /> default: --i;continue;<br /> }<br /> printf("%d",i); <br />}<br /><br />12. #include<br />void main(){<br /> int x=3;<br /> while(1){<br /> switch(x){<br /> case 5/2: x+=x+++x;<br /> case 3%4: x+=x---x;continue;<br /> case 3>=3: x+=!!!x;break;<br /> case 5&&0:x+=~~~x;continue;<br /> default: x+=-x--;<br /> }<br /> break;<br /> }<br /> printf("%d",x); <br />}<br />13. #include<br />void main(){<br /> switch(2){<br /> case 1L:printf("No");<br /> case 2L:printf("%s","I");<br /> goto Love;<br /> case 3L:printf("Please");<br /> case 4L:Love:printf("Hi");<br /> } <br />}<br />Anonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.comtag:blogger.com,1999:blog-1042680598466378597.post-32143723146689803192016-10-08T05:02:44.753-07:002016-10-08T05:02:44.753-07:00Conversion ( Number System )
1. Write a c program...Conversion ( Number System )<br /><br />1. Write a c program to convert decimal number to binary number.<br />2. Write a c program to convert decimal number to octal number.<br />3. Write a c program to convert decimal number o hexadecimal number.<br />4. Write a c program to convert octal number to binary number.<br />5. Write a c program to convert octal number to decimal number.<br />6. Write a c program to convert octal number to hexadecimal number.<br />7. Write a c program to convert hexadecimal number to binary number.<br />8. Write a c program to convert hexadecimal number to octal number.<br />9. Write a c program to convert hexadecimal number to decimal number.<br />10. Write a c program to convert binary number to octal number.<br />11. Write a c program to convert binary number to decimal number.<br />12. Write a c program to convert binary number to hexadecimal number.<br />13. C program for addition of binary numbers . <br />14. C program for multiplication of two binary numbers.<br />15. C program fractional binary conversion from decimal.<br />16. C program for fractional decimal to binary fraction conversion.<br />17. C program to convert decimal number to roman.<br />18. C program to convert roman number to decimal number.<br />19. C program to convert each digits of a number in words<br />20. C program to convert currency or number in word.<br />Anonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.comtag:blogger.com,1999:blog-1042680598466378597.post-30269184452371117732016-10-08T04:58:37.680-07:002016-10-08T04:58:37.680-07:00
1. Write a c program to reverse any number.
2. Wr...<br />1. Write a c program to reverse any number.<br />2. Write a c program to find out sum of digit of given number.<br />3. Write a c program to find out power of number. <br />4. Write a c program to add two numbers without using addition operator.<br />5. Write a c program to subtract two numbers without using subtraction operator.<br />6. Write a c program to find largest among three numbers using binary minus operator.<br /> 7. Write a c program to find largest among three numbers using conditional operator<br />8. Write a c program to find out generic root of any number.<br />9. Write a c program to find out prime factor of given number.<br />10. Write a c program to find out NCR factor of given number.<br />11. How to convert string to int without using library functions in c<br />12. Program in c to print 1 to 100 without using loop<br />13. C program for swapping of two numbers<br />14. Program to find largest of n numbers in c<br />15. Split number into digits in c programming<br />16. C program to count number of digits in a number<br />Anonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.comtag:blogger.com,1999:blog-1042680598466378597.post-82125147386476272612016-10-08T04:58:11.513-07:002016-10-08T04:58:11.513-07:00C program with numbersC program with numbersAnonymoushttps://www.blogger.com/profile/07243853788252419594noreply@blogger.com