Find the O/p of the following
1)
#include
int main()
{
char c='1';
int j=atoi(c);
}

Answers were Sorted based on User's Feedback



Find the O/p of the following 1) #include int main() { char c='1'; int j=ato..

Answer / vinay

It will execute

Is This Answer Correct ?    18 Yes 5 No

Find the O/p of the following 1) #include int main() { char c='1'; int j=ato..

Answer / arka sen

it will give the ASCII Value of char C.

Is This Answer Correct ?    10 Yes 6 No

Find the O/p of the following 1) #include int main() { char c='1'; int j=ato..

Answer / ram

segmentation fault

Is This Answer Correct ?    3 Yes 0 No

Find the O/p of the following 1) #include int main() { char c='1'; int j=ato..

Answer / g

49

Is This Answer Correct ?    9 Yes 8 No

Post New Answer

More C Interview Questions

Write a program to print "hello world" without using a semicolon?

0 Answers  


what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7

4 Answers   TCS,


Write a program to know whether the input number is an armstrong number.

0 Answers   Wipro,


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


CAN ANYONE PLEASE HELP ON THIS PROGRAM FOR MY EXAM..TQ Write a C program to help a H’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the H’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the H’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80 Your program must do the following task below: a. Define the data structs, menu item types with two components: menu item of type string and menu price of type double. Use an array to declare the data structs. b. Function get data to loads the data into the array menu list. c. Function show menu to show the different breakfast items offered by the restaurant and tell the user how to select the items. d. Function print receipt to calculates and prints the customer receipt. The billing amount should include a 5% tax. e. Format your output with two decimal places. The name of each item in the output must be left-justify. You may assume that the user selects only one item of a particular type. f. The two sample output as shown: Welcome to HiFi’s Restaurant 1 Bacon and Egg $3.45 1 Muffin $2.20 1 Coffee $1.50 Tax 5% $0.35 Amount Due $7.50

1 Answers  






What are the different pointer models in c?

4 Answers  


`write a program to display the recomended action depends on a color of trafic light using nested if statments

0 Answers  


What will be the result of the following C language program? main() { int a = 0; int b = 20; char x = 1; char y = 10; if(a,b,x,y) printf("Welcome"); }

1 Answers  


write a own function for strstr

1 Answers   LG Soft,


#include<stdio.h> #include<conio.h> void main() { float a; clrscr(); a=0.5; if(a==0.5) printf("yes"); else printf("no"); getch(); }

9 Answers   TCS,


HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER

4 Answers  


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

0 Answers  


Categories