Why doesn't the code "int a = 1000, b = 1000;
long int c = a * b;" work?

Answer Posted / komal

it wont work as we have to declare the variable 'b'
again...we can not declare it like int a=10,b=3;
it has to b like int a=10;
int b=6;

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2010


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

910


What are loops in c?

760


Explain the advantages and disadvantages of macros.

833


Who invented b language?

1133


program for reversing a selected line word by word when multiple lines are given without using strrev

2159


What is the use of function in c?

912


What is the difference between array_name and &array_name?

973


What is the difference between text files and binary files?

932


what are # pragma staments?

1805


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2914


Explain what are header files and explain what are its uses in c programming?

858


Can a pointer be null?

759


Explain how do you search data in a data file using random access method?

896


hi, which software companys will take,if d candidate's % is jst 55%?

1856