Difference between c and c++ and java programming languages
In last 2 yeas i have worked a lot on C Programming But now days i need to work on C++ and Java programming language. I have not time to take book of C++ or java programming and start to read that…In any programming language most of the stuff are common. So you know one language very well then by keeping that in mind you can learn other language very well.
Some days ago i found this article and it helped me a lot. i hope this will also help you….
C++ Style Languages: C++, Objective C, Java, C#
- it shows the hello world program , version checks,used libraries,
- primitive data types,
- arithmetic and logical operation
- arrays and strings,
- regular expressions,
- dates and time,
- functions declaration ,
- execution control flow,
- files operatins,
- processes and environment,
- libraries and namespaces
- concept of objects
Little endian and Big endian in C programming
This is the most complex concept…. i have read enough on net and some books but still i was not getting this concept. i was not understanding how this will effect my c code. But i have did some experiments with some example code and tried to understand things. and here now i am going to share those examples.
In computing, the term endian or endianness refers to the ordering of individually addressable sub-components within the representation of a larger data item as stored in external memory (or, sometimes, as sent on a serial connection)
You can understand basic things about at
Little endian and Big endian
Big-endian
How to access/unblock songs.pk in india?
Due to the pirated supply of music kolkata high court have banned songs.pk and now it can’t be accessed in india.
All isp’s have been asked to put an injection so that songs.pk can’t be accessed.
Following are several Indian ISP names included which have to block Songs.pk in India.
Sify Technologies Ltd
Dishnet Wireless Ltd
Wipro Ltd
Hathway Cable & Datacom Pvt Ltd
Tata Teleservices (Maharashtra) Ltd
Hughes Communications Ltd India
Reliance Communications Infrastructure Ltd
Reliance Wimax Ltd
Bharti Airtel Ltd
Vodafone India Ltd
BG Broadband India Pvt Ltd
Now to access such blocked sites you need proxy to these blocked sites.
Stop Plugin from showing updates
While developing WordPress site most of the time we use different plugin for the better support of the site.And some times we as a developer make some customization in the default plugin files for our required functionality.
The plugin files are always get updated from its developer and the updates for newer version are notified to us by the wordpress. Suppose we have make some customization in code in the original plugin’s file then that changes will be removed if we update the plugin file to newer version.So to solve this problem we have to stop the automatic update option of the plugin or update notification of the plugin.
To do this we can have two Methods.
That are,
Method 1:
just add below code to the function.php file of your current theme ,
# 3.0: remove_action( 'load-update-core.php', 'wp_update_plugins' ); add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
if you are using wordpress 3.0 or higher version.
read more
How to resolve jquery conflict?
Many a times in the project we have to use jQuery code.And some times this jQuery code gets conflict with some other jQuery code.So to solve that issue i have some solution which will help you to getout from the jQuery conflict issue so that you can get back to your work.
When you are using multiple jQuery files you may lead to the conflict amoung them.Because most of the time jQuery file use “$” in the file as the jQuery reference variable throw out the code.And because of this “$” variable jQuery files get conflict with each other.
To resolve the jQuery conflict issue you can use any of the below option,
Option 1:
When you put jQuery into no-conflict mode, you have the option of assigning a variable name to replace $. ( only once )
<script src="prototype.js"></script> <script src="jquery.js"></script> <script>var $j = jQuery.noConflict();</script>
C programming interview questions and answers for freshers
i have seen that in c programming based interview most of the question are based on some concept clear question and answer.
i have been posting that all tips on this ShareProgrammingTips but here i am just going to List down some good question on C programming.
1>
How will you set, clear ,toggle and check a single bit in C?
2>
Do you know the Concept of Octal literal in C
3>
Do you know the difference between all standard version of c language
4>
How will you detect memory leakage in C program?
5>
Do you know about Implementation limitation of c programming language
What’s the need of using encapsulation { do..while(0) block } in define a macro in C programming?
While reading many codes in c programming based open source project i came to know one interesting things. Let me explain you by some sample code.
#define Assert(v) if(!(v)) printf("Error occurred at: %s, in %s at %i", #v, __FILE__, __LINE__);At most of the experienced people used to write such macro in following style
#define Assert(v) do { if(!(v)) printf("Error occurred at: %s, in %s at %i", #v, __FILE__, __LINE__); } while(0)This method is called as making encapsulating our macro.
Now let me explain you whats the need of this….
Short-circuiting in C Programming Expressions………….!!!
One Superb thing i learn today is Short-circuiting in C Programming Expressions.
Let me explain you by code
#include <stdio .h> int main() { int a = 0; int b = 1; int c = 2; int d = 3; a = ++b && ++c || ++d; printf ("b = %d, c = %d, d = %d, a = %d", b, c, d, a); return 0; }</stdio>
if you think output of this program will be
b = 2, c = 3, d = 4, a = 1
then you need to read this whole post..!
read more
In embedded domain, Copying of structure is why avoided in c programming?
Generally In embedded software domain for copying structure of same type people dont prefer to use direct assignment and do that by memcpy function or by doing assignment of each element of structure.
Look at Example
struct student { int roll_no; int age; };
struct student exmple1 = {32,15}; struct student exmple2;
for copying exmple1 into exmple2.. instead of writing direct
exmple2=exmple1;
people like to use
memcpy(exmple2,exmple1,sizeof(struct student));
or
exmple2.roll_no=exmple1.roll_no; exmple2.age=exmple1.age;
Why?
How to change the buffering option for any specified stream in c programming?
Many of us faced this problem. Sometimes we put some debug prints in our code this way
fprintf(logfile,"successfully reached at debug-point 1\n"); some code is here fprintf(logfile,"successfully reached at debug-point 2"); Here segmantaion fault occur due to some reason
Now in this condition only debug-point1 will be print on logfile debug-point 2 print was written to buffer to be used for I/O operations with the specified stream logfile. but its not flushed because it didnt get \n and not written on logfile and program crash so we thinks that crash occur after debug-point1
Search in this website
our sponsors
latest comments
- Esta on Free android applications
- PCB Design on Embedded Jobs and Careers | embeddedcareers.com
- JIGAR PATEL on List of all standard version of c language
- agabein on List of all standard version of c language
- David Wood fin on Stop Plugin from showing updates
Find us on Facebook
Top Authors
Find us on stackoverflow
Polls
My Bookmarks
- Audio/video Recorder & player application based on MATLAB
- check dependency of your binary
- defination of all standard c programming language function
- Great Question-Answer on c programming
- know what your c code means
- Limition of c programming language
- List of all version of c programming language
- Online c compiler
- php freelancing work
- some more stuff on C programming language
- Volatile Keyword in Embedded System
- Write Android application in c language



