Question
What are differences between sizeof operator and strlen function?

Answers

sizeof is keyword of C that can find size of a String constant including null character, but strlen is function which has been defined string.h and can find number of characters in a string excluding null character.

#include
void main(){
int a,b;
a=strlen("cquestionbank");
b=sizeof("cquestionbank");
printf("%d %d",a,b);
getch();
}   Your Comment




More Software,operator Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What is the purpose of . Operator?

Define scope resolution operator?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?



Search
Can you Answer!!
  • Q The Lok Sabha must meet atleast _____ times in a year.
  • Q Where is the headquarters of the Indian Council of Agricultural Research?
  • Q Differences of horizontal and vertical micro code
  • Q The Political parties got the constitutional recognition for the first time in the year?
  • Q What do you know about ADO.NET's objects and methods?
  • Q The largest princely state in India at the time of independence:
  • Q Which social reformer's birthplace is Venganoor?
  • Q Following is the syntax of the method to open a file in asynchronous mode: fs.open(path, flags[, mode], callback) Parameters Here is the description of the parameters used: path - This is string having file name including path. flags - Flag tells the behavior of the file to be opened. All possible values have been mentioned below. mode - This sets the file mode (permission and sticky bits), but only if the file was created. It defaults to 0666, readable and writeable. callback - This is the callback function which gets two arguments (err, fd).
  • Q Flip Flops
  • Q How will you differentiate between a manager and a leader?
  • Q The 'performance' appraisal feedback always includes