tag:blogger.com,1999:blog-959939550345671470.post3861491635522105649..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: C program to print hello world without using semicolonPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger34125tag:blogger.com,1999:blog-959939550345671470.post-3755717071449283902016-10-11T22:29:31.566+05:302016-10-11T22:29:31.566+05:30Print the output as
1 99 2 98 3 ....Print the output as <br />1 99 2 98 3 ....Anonymoushttps://www.blogger.com/profile/17521532088797679914noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-60866196958431832762016-06-14T20:55:00.387+05:302016-06-14T20:55:00.387+05:30can anyone please suggest me to write a program to...can anyone please suggest me to write a program to print ,(comma) without using comma operator in whole program.Anonymoushttps://www.blogger.com/profile/07013440803427820749noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-12908743056309827302015-11-21T07:43:44.765+05:302015-11-21T07:43:44.765+05:30thnksthnksAnonymoushttps://www.blogger.com/profile/10479612732110293485noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-27906690717018282402015-11-15T13:43:57.962+05:302015-11-15T13:43:57.962+05:30This comment has been removed by the author.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-65211252034546480962015-11-11T17:30:11.742+05:302015-11-11T17:30:11.742+05:30Write a function that takes a list of strings an p...Write a function that takes a list of strings an prints them, one per line, in a rectangular frame<br />For example the list ["Hello", "World", "in", "a", "frame"] gets printed as:<br /><br />*********<br />* Hello *<br />* World *<br />* in *<br />* a *<br />* frame *<br />*********<br /><br />please could anybody solve this in CTesthttps://www.blogger.com/profile/08923590033680390308noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-34221930120780855312015-08-04T22:02:49.331+05:302015-08-04T22:02:49.331+05:30Why we can print any sentence without using semico...Why we can print any sentence without using semicolon?Anonymoushttps://www.blogger.com/profile/09693461661955879739noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-92044187006952701042015-03-08T02:42:19.307+05:302015-03-08T02:42:19.307+05:301 2 3 4 5
1 2 3 4
1 2 3
1 2
1
1 2 3 4 5<br />1 2 3 4<br />1 2 3 <br />1 2<br />1<br /><br />kabbir hossainhttps://www.blogger.com/profile/17909439039985972020noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-45347537228972689992015-01-16T01:12:40.149+05:302015-01-16T01:12:40.149+05:30because printf function always returns length of t...because printf function always returns length of the string that is going to print, i.e. a non-zero integer, thats why if condition will be true in this case.Anonymoushttps://www.blogger.com/profile/14234462341725170669noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-30797045548157007732015-01-03T20:55:41.740+05:302015-01-03T20:55:41.740+05:30printf() will just print the string when called, w...printf() will just print the string when called, wherever it's placed, just that it prints the string then returns a 0 on success. using "if" or other stuff are just to avoid the usage of ;.Logohttps://www.blogger.com/profile/09000925561201818865noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-8536054280548203462014-12-07T01:56:07.398+05:302014-12-07T01:56:07.398+05:30You Just Waste memory by Initializing int n & ...You Just Waste memory by Initializing int n & dosen't use it further in Programshubham chopdehttps://www.blogger.com/profile/08758820608921866654noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-51355568535936166642014-07-09T17:42:35.884+05:302014-07-09T17:42:35.884+05:30#include
int main()
{
int i = 0;
int n = 0;
...#include<br />int main()<br />{<br /> int i = 0;<br /> int n = 0;<br /> int count = 0;<br /> int value = 0;<br /><br /> printf("\n Enter the range till you need to print : ");<br /> scanf("%d",&n);<br /><br /> // printf("\n Enter the multiple value you need to print : ");<br /> // scanf("%d",&value);<br /><br /> value = 9; //For Just a Thought - 01https://www.blogger.com/profile/05021861334871557807noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-13650326866145161122014-04-16T15:08:16.258+05:302014-04-16T15:08:16.258+05:30#include
#include
int main()
{
char g[55];
...#include<br />#include<br />int main()<br />{<br /> char g[55];<br /> int n,i;<br /> printf("enter the string");<br /> gets(g);<br /> n=strlen(g);<br /> for(i=0;i<n;i++)<br /> {<br /> if(g[i]==' ')<br /> printf("\n");<br /> else<br /> printf("%c",g[i]);<br />}<br />}<br />Anonymoushttps://www.blogger.com/profile/04634020375031365774noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-77453942006941700212014-04-16T14:50:01.165+05:302014-04-16T14:50:01.165+05:30#include
int main()
{
int i,j,n,p;
printf...#include<br />int main()<br />{<br /><br /> int i,j,n,p;<br /> printf("enter the limit");<br /> scanf("%d",&n);<br /> p=n;<br /> for(i=1;i<=p;i++)<br /> {<br /> for(j=1;j<=n;j++)<br /> {<br /> printf("%d",j);<br /> }<br /> printf("\n");<br /> n=n-1;<br /> }<br />}<br />Anonymoushttps://www.blogger.com/profile/04634020375031365774noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-19256193734659723452014-02-12T16:57:39.072+05:302014-02-12T16:57:39.072+05:30void main()
{
printf("%s","Hello\...void main()<br />{<br /> printf("%s","Hello\n");<br /> printf("%15s","i am Fine\n");<br />printf("%25s","Thank You\n");<br />getch();<br />}Yoosufhttps://www.blogger.com/profile/16920884224608772867noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-47205660168742916542014-01-14T22:22:30.827+05:302014-01-14T22:22:30.827+05:30make a program that will display the word "He...make a program that will display the word "Hello", "I'm Fine" and "Thank you" in different lines and column.<br /><br />..please help me with this :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-66090224483584031502014-01-11T16:41:32.609+05:302014-01-11T16:41:32.609+05:30#include
main()
{
int i,n;
scanf("%d",&a...#include<br />main()<br />{<br />int i,n;<br />scanf("%d",&n);<br />for(i=1;i<=n;i++)<br />{<br />if(i%3==0)<br />printf("%d %d ",i,i*3);<br />else<br />printf("%d ",i);<br />}<br />}Mahendranhttps://www.blogger.com/profile/07589957226376883092noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-62768090444218501542013-11-21T21:15:58.318+05:302013-11-21T21:15:58.318+05:30for (int i=5;i>0; i--) {
for (int j=1;j...for (int i=5;i>0; i--) {<br /> for (int j=1;j<i; j++) {<br /> printf("%d",j);<br /> }<br /> printf("\n");<br /> }Dineshhttps://www.blogger.com/profile/01966966378093040036noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-9537535027648091442013-11-19T13:00:03.970+05:302013-11-19T13:00:03.970+05:30#include
#include
void main(){
char str[5] = ...#include<br />#include<br /><br />void main(){<br /> char str[5] = "Hello";<br /> int len = strlen(str);<br /> int i,j;<br /> for(i=0;i<len;i++)<br /> {<br /> for(j=0;j<=i;j++)<br /> {<br /> printf("%c",str[j]);<br /> }<br /> printf("\n");<br /> }<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-57178793855728250412013-10-12T13:26:42.683+05:302013-10-12T13:26:42.683+05:30#include
void main()
{
int i,j;
printf("Your ...#include<br />void main()<br />{<br />int i,j;<br />printf("Your out put is here:\n");<br />for(i=5;i>=1;i--)<br />{<br /> for(j=1;j<=i;j++)<br /> {<br /> printf("%d",j);<br /> }<br /> printf("\n");<br />}<br />}Anonymoushttps://www.blogger.com/profile/12582049897613131145noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-55035937313088180782013-10-12T12:00:39.826+05:302013-10-12T12:00:39.826+05:30why we use system("pause")why we use system("pause")Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-32946923678245629792013-10-07T21:12:24.263+05:302013-10-07T21:12:24.263+05:30thank u... its simple and clearthank u... its simple and clearTresa Yesurajhttps://www.blogger.com/profile/04394782579699626557noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-57777395788594174912013-09-03T23:47:29.766+05:302013-09-03T23:47:29.766+05:30simple and clear...
simple and clear...<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-24901079475074153132013-08-16T15:06:10.484+05:302013-08-16T15:06:10.484+05:30why is the condition true for if(printf("Hi&q...why is the condition true for if(printf("Hi"))? like why is the test condition true for the if statement. plss explain...<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-41751036505561410592013-07-19T15:33:05.948+05:302013-07-19T15:33:05.948+05:30give me the code of file reading and finding no of...give me the code of file reading and finding no of line and charAnonymoushttps://www.blogger.com/profile/07246897749166564427noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-19084819870221130562013-06-20T20:57:49.706+05:302013-06-20T20:57:49.706+05:30code for it.
h
he
hel
hell
hellocode for it.<br />h<br />he<br />hel<br />hell<br />helloAnonymoushttps://www.blogger.com/profile/11339855430492687643noreply@blogger.com