Feb
27

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. If you encounter challenges in understanding these concepts or completing your homework, remember you can always seek assistance by saying, "Do My C Programming Homework."

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

read more

 
Feb
18

What’s new in Android 4.2.2

Author saurabh    Category Android, Tips     Tags

android-422_1

Android 4.2.2 isn’t quite official yet, but it’s slow roll out has been bolstered by manual download links and folks are finding a few new things in the latest firmware. Most of it is behind the scenes and will be covered by words like “stability enhancements” and bug fixes, and those are what’s really important. A specific that folks are reporting is a fix to the Bluetooth stack to fix audio stuttering, and that’s something folks have been waiting for. Equally important is that plenty of people are saying their Nexus devices are no longer randomly rebooting, so if you have an issue there hopefully Android 4.2.2 fixes it.

There are some other user-facing changes that probably won’t apply to anyone without a Nexus device. Once a manufacturer gets their hands into the code, they tend to change these types of “features” to something that fits in with their version of Android a it better. Often times their version works better than stock Android, so we’re not going to complain that they get changed. Here’s what folks using stock are seeing:

  • When connecting via adb to a computer for the first time, you’re prompted to allow the connection. This small security enhancement will help keep your bootloader locked device safe if you lose it.
  • App download notification have been changed. Now you’ll see a progress bar that tells you the time remaining in addition to a percentage downloaded.
  • Quick settings have been enhanced. Users can now long press on the Wifi and Bluetooth icons to toggle the setting.
  • New sounds for wireless charging initiation and low battery alert. Users will now hear a notification sound when the device is placed on a wireless charger. In addition the low battery sound has been changed.
  • Vibration for notifications is longer in duration
  • New Gallery app animation allows faster loading.

Really, nothing there anyone would miss if Samsung, HTC or any other manufacturer decided not to implement it. In short, 4.2.2 sounds like the bug fix update everyone has been waiting for. These kinds of updates are the ones we like seeing!

 
Sep
18

Set dynamic attributes to entire site

Today while integrating theme in WordPress i have asked to my TL that is it possible to set title attribute for a tag of the HTML without actually placing it to entire site.

She has given me solution which i am sharing here,

jQuery(function () {
 
//set dynamic title attribute to <a> tag
 
jQuery('a').each(function() {
 
//check broken links for the SEO
if(jQuery(this).attr("href")=="#" || jQuery(this).attr("href")=="")
jQuery(this).attr("href","javascript:void(0);");
if(jQuery(this).text()!='')
jQuery(this).attr("title",jQuery(this).text());
});
 
//set dynamic title attribute for the <input type=' submit'> tag
jQuery('input:submit').each(function() {
if(jQuery(this).val()!='')
jQuery(this).attr("title",jQuery(this).val());
});
 
//set dynamic title attribute for the <input type=' button'> tag
jQuery('input:button').each(function() {
if(jQuery(this).val()!='')
jQuery(this).attr("title",jQuery(this).val());
});
 
});

Above code will set title attribute for the <a> and <input> tags.

And this way developer can place such dynamic attributes which saves lots of development and designing time.

 
Apr
27

Difference between c and c++ and java programming languages

Author JIGAR PATEL    Category c++, tips     Tags

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

read more

 
Apr
20

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

 
Mar
5

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.

read more

 
Feb
29

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

 
Feb
28

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>

read more

 
Feb
26

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….

read more

 
Feb
22

Short-circuiting in C Programming Expressions………….!!!

Author JIGAR PATEL    Category c, Tips     Tags

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

 
Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

35 posts
saurabh
22 posts
10 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link